Support for copying non-code-blocks onto clipboard #3867
danielrosehill
started this conversation in
Ideas
Replies: 1 comment
-
I'd recommend avoiding rendering the markup (your prompts look like Markdown), as it could prevent users from copying the actual prompt. Therefore, I recommend using a code block indeed, which will prevent rendering of the markup. If you want to make it more readable, akin to the quote, by wrapping the text, you could try this: https://stackoverflow.com/a/248013/3451029. Just give a CSS class to your prompt code blocks, and use it to wrap their contents. My prompt code block:
```text {.prompt-block}
blabla
``` |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone!
I'm working on converting some Github repos into documentation sites and am really enjoying using MK Docs!
One idea I had today:
One of my repos is about prompt engineering. So most of the documentation consists of example prompts and outputs.
It would be great to be able to provide the user with an easy way to copy the text.
I thought of perhaps using code blocks alongside the code copy plugin and setting the "syntax" to be simply text.
But it makes the text difficult to read:
I can use block quotes of course and the text looks much better. But then I don't have the nice 'copy' function that I do if I set it up as a code block.
It would be great to have a way to mark a block quote for copying or perhaps even declare it as natural language in the code block syntax to prevent the usual format rules from applying.
Beta Was this translation helpful? Give feedback.
All reactions