Replies: 2 comments 7 replies
-
🤷♂️ never seen that feature before and I don't really find it valuable. Do you have example doc sites doing this? It's quite niche and you can implement it on your own site with swizzle. If it's not possible or complex (too much to swizzle) than we should focus on making it easier for you to add this button, but I don't think we want it to be a core feature unless we have at least a few users requesting it, and proof that it's a good UX. |
Beta Was this translation helpful? Give feedback.
6 replies
-
Added a +1, seems like a valuable addition. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
For code blocks, we already have a copy button so why not a button to download the code block into a file ?
For example :
When clicking on the download button, you get a file called
HelloCodeTitle.js
( orsrc_components_HelloCodeTitle.js
to keep it simple)As showncast in my example, that behavior should be disabled by default, as not all code blocks are worthy to be download IHMO
(One open question is how to provide the MIME type to Blob or having by default
application/text
in case nothing was provided )What do you think ?
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions