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
{{ message }}
Repository navigation
bug: Enabling pymdownx line numbers globally also renders them in signatures #192
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.
Activity
pawamoy commentedon Nov 26, 2024
OK, easy fix. I also decided to do the opposite for
pyconcode examples in docstrings (the ones written without fences) and to start respectinghighlight's configuration. Commit message:fix: Respect highlight's `linenums` config for `pycon` examples in do…
fix: Never render line numbers for signatures and attribute values
fix: Respect highlight's `linenums` config for `pycon` examples in do…
fix: Never render line numbers for signatures and attribute values