-
I am aware of #321 and prismjs with its line numbers plugin. However, it seems its not that easy when I actually trying to add line numbers. The issue here is primjs will change the dom after triggering a highlight. So, is there a feasible/good way to add line numbers to code blocks? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Acutally you can make your own line numbers component within custom CodeBlockElement, no need to use the prism plugin. |
Beta Was this translation helpful? Give feedback.
Acutally you can make your own line numbers component within custom CodeBlockElement, no need to use the prism plugin.