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
copy button is not displayed for longer code block #55
Comments
It looks like the doc-string's indentation is different by a level. I doubt that would fix this though. What was the last version number with the button that had worked for you? |
It worked on sphinx_material 0.3.1 |
Well, this isn't a problem in mkdocs-material, but it definitely is something we merged in from upstream v8.2.5 - I suspect it is something to do with the changes made to mounting code blocks for large pages (a speed up to satisfy squidfunk/mkdocs-material#3643). TL;DR - Still not exactly sure what we merged from upstream that is causing this issue. I'm focusing on this file's diff. |
This is actually an upstream bug that was fixed here: We just need to merge in the updates. |
Note: The best way to check if something is an upstream bug is to reproduce using the version of mkdocs-material listed in |
yeah, that was my bad. Even more motivation to resolve the merge problems with recently v8.2.8+. |
I found that there is no copy button for longer code block which is 40 lines or more.
Expected behaviour
Actual behaviour
I use: Python 3.8.9, sphinx 4.4.0 and sphinx_material 0.4.0
The text was updated successfully, but these errors were encountered: