Commit 0527487
committed
fix: Respect highlight's
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: mkdocstrings/python#192linenums config for pycon examples in docstrings1 parent b8c87b9 commit 0527487
File tree
1 file changed
+1
-1
lines changed- src/mkdocstrings_handlers/python/templates/material/_base/docstring
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
0 commit comments