mystmd icon indicating copy to clipboard operation
mystmd copied to clipboard

Unselectable prompt for code blocks

Open zmoon opened this issue 2 months ago • 1 comments

Proposal

So you can write something like

$ cd mystmd

but the prompt (here $ ) isn't included when you select text or use the copy button. Like enabled by the sphinx-prompt Sphinx extension. But I wonder if this could be accomplished with options for the existing code/code-cell directives instead of a new directive.

```{code} bash
:prompt: $

$ cd mystmd
```

zmoon avatar Oct 03 '25 20:10 zmoon

I'd love this one maybe being able to somehow configure a default language-to-prompt map globally could help reduce the overhead :)

parmentelat avatar Oct 23 '25 15:10 parmentelat