Open
Description
Context
I'm a contributor and user of HoloViz Panel. It uses markdown-it-py
as the default renderer for markdown.
I would really like my code blocks to be easy to copy-paste. I would like a copy icon similar to what most data app and tech doc frameworks I know support.
I cannot see how this is possible with markdown-it-py. And I would really like it. So therefore I propose this feature request.
Proposal
A plugin to add a copy to clipboard icon to the rendered markdown.
For example like Github does
Or like Quarto does it
Additional Context
- Request for HoloViz Panel Make it easy to copy-paste from Markdown code blocks holoviz/panel#6209
- With HoloViz markdown based html is dynamically added to the application. And even streamed if the web app is a chat interface. So adding buttons on load of the document will not solve the problem.
Tasks and updates
No response