Is there a way to disable line numbers per code-block? #1403
-
I use it through MkDocs and I've enabled it in my configuration: - pymdownx.highlight:
linenums: true
use_pygments: true I would like to disable it for some code blocks. Is there something like this: ```bash linenums="None"
git status
``` |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
If I recall, there is currently only a way to enable them per block (with it turned off globally). I'll have to double-check as I don't think it can be turned off per block, but I honestly don't recall if some undocumented feature like this slipped in at some point. |
Beta Was this translation helpful? Give feedback.
-
for whomever finds this discussion (like me), it seems like you can just specify
|
Beta Was this translation helpful? Give feedback.
If I recall, there is currently only a way to enable them per block (with it turned off globally). I'll have to double-check as I don't think it can be turned off per block, but I honestly don't recall if some undocumented feature like this slipped in at some point.