Open maor-benami opened 1 year ago
For those who are looking for the functionality of adding lines on the Node.js
side can look at the plugin for rehype
in my repository, it splits into lines and wraps the content created by rehype-highlight
in span.line
which in the future you can use to create numbered lines.
highlight.js can be used on server side to change
code
tagsline-numbers plugin depends on window
https://stackoverflow.com/questions/48843806/how-to-use-npm-marked-with-highlightjs