Add line numbers to code blocks #642
-
I am interested in enabling line numbers within code blocks. Possibly similar to hackmd.io (where you can append an '=' sign after the code block intro ``` and then line numbers are rendered). Perhaps this is already done or possible with another remark plugin? If it is I would rather use that solution. If it is not possible yet, then I would like to build a remark plugin to enable this functionality... |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
For reference this issue at Svelte Society. According to the mdsvex docs the engine utilizes remark plugins |
Beta Was this translation helpful? Give feedback.
-
remark-prism supports prism plugins including the line number plugin. |
Beta Was this translation helpful? Give feedback.
remark-prism supports prism plugins including the line number plugin.
Though you may not need to add the remark plugin, as you appear to be using mdsvex, which has prism built in already.