Solution to add a [copy to clipboard] button in code fence style? #414
Unanswered
tsunashitmt
asked this question in
Q&A
Replies: 1 comment 1 reply
-
The milkdown@v6 will make you can extend the view of code fence(any node in fact). I'm working on it. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Guys,
Seems a lot wiki platform support such feature to display a [copy to clipboard] button in code blocks.
Is there a best practice for milkdown's code fence achieve such function?
I tried to insert a DOM with button tag integrated clipboard.js after content updated but with no luck, and extend code-fence.ts seems quite hard for me, any sample code would be appreciate.
Beta Was this translation helpful? Give feedback.
All reactions