Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to use in nodejs environment (without window) #96

Open
maor-benami opened this issue Dec 21, 2022 · 1 comment
Open

Option to use in nodejs environment (without window) #96

maor-benami opened this issue Dec 21, 2022 · 1 comment

Comments

@maor-benami
Copy link

highlight.js can be used on server side to change code tags

line-numbers plugin depends on window

https://stackoverflow.com/questions/48843806/how-to-use-npm-marked-with-highlightjs

@skoropadas
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants