markdown-it-code-copy
markdown-it-code-copy copied to clipboard
Does not seem to work
This extention does not seem to work. Testing on xwayland chrome on linux (not sure if it is broken on all systems or not).
The button shows up but clicking it does nothing (nothing is copied to the clipboard).
It uses a clipboard library to copy the content. So it should be an upstream issue, probably specific to xwayland.
Doesn't appear to be working on Electron under windows either.
Seems like I got it to work.
I added <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/clipboard.min.js"></script> to my html and then had to do
window.addEventListener("DOMContentLoaded", () => {
new ClipboardJS(".markdown-it-code-copy");
on the render thread.