New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improvement: support also parsed-literal blocks #68
Comments
Could you give an example of a page w/ a parsed-literal block? It would make it easier for folks to implement a selector to add buttons to this |
Sounds good 👍 I think the fix would need to be here for anyone interested in implementing this: https://github.com/choldgraf/sphinx-copybutton/blob/master/sphinx_copybutton/__init__.py#L28 Seems like |
FWIW the suggestion in this comment can be used as a workaround: sphinx-doc/sphinx#4054 (comment) I hope this helps! |
I think this is a Sphinx bug, see also sphinx-doc/sphinx#2167. IMHO Sphinx should generate nested Strangely, if you don't use any special formatting (which is against the whole purpose of |
Hello, On my end, (like @mgeier said I think) the issue is that:
But when used with special formatting (i.e. a |version| variable in my case), it loses the I found a simple fix worth trying:
*the 3 directives must be on the same indentation level. With this syntax, you force a It does not support syntax highlighting (in the form LMK if it works and if you have any suggestion ! |
Linking issue #115 as it seems to be the same problem. |
It would be nice if it was possible to also copy text from parsed-literal blocks too.
The text was updated successfully, but these errors were encountered: