You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OK, easy fix. I also decided to do the opposite for pycon code examples in docstrings (the ones written without fences) and to start respecting highlight's configuration. Commit message:
The reasoning is that someone enabling line numbers globally supposedly also wants them for code blocks in docstrings. There's in my opinion no difference between a code block in a Markdown document and a code block in a docstring, they both serve documentation purposes and should be subject to the same rendering rules.
If that makes someone unhappy, we can always consider adding an option to hide line numbers for code blocks in docstrings.
…cstrings
The reasoning is that someone enabling line numbers globally supposedly also wants them for code blocks in docstrings. There's in my opinion no difference between a code block in a Markdown document and a code block in a docstring, they both serve documentation purposes and should be subject to the same rendering rules.
If that makes someone unhappy, we can always consider adding an option to hide line numbers for code blocks in docstrings.
Related-to-#192: #192
Line numbers appear for signatures. They shouldn't (it doesn't make sense). Reported on the Matrix channel.
The text was updated successfully, but these errors were encountered: