Replies: 2 comments 3 replies
-
Then a request for material to support this would be needed. They are the ones doing the highlighting. |
Beta Was this translation helpful? Give feedback.
2 replies
-
Might be a bug. Please create an issue with a minimal reproduction. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am in love with the way one can link to certain line numbers from the markdown:
The problem I am having is that
codelineno-8-2:9
is not a persisten id of the code block element.If we add a code block before the one in question, its ID will auto-increment and the link won't work anymore.
Since pymarkdownx snippet extension allows to assign user-defined ID it is possible to have a static reference to the code block, that is agnostic to the document layout.
The problem is that
#myid
id assigned to the code block is not "respected" by the mkdocs-material, so that when one uses#__codelineno-myid-7
the relevant line does not get highlighted, although the span elements have that ID.It would be great to have this feature.
Beta Was this translation helpful? Give feedback.
All reactions