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

How can I use it in Node.js #27

Open
jasonxia23 opened this issue Jan 18, 2018 · 3 comments
Open

How can I use it in Node.js #27

jasonxia23 opened this issue Jan 18, 2018 · 3 comments

Comments

@jasonxia23
Copy link

No description provided.

@wcoder
Copy link
Owner

wcoder commented Jan 18, 2018

Hi, thanks for the question!

Current implementation doesn't allow use that with Node.JS

@jasonxia23
Copy link
Author

jasonxia23 commented Jan 24, 2018

IMO, to support using in Node.js, lineNumbersBlock should be extracted, which may be a breaking change to your preexisting API.

@wcoder wcoder modified the milestones: improvement, new_version Feb 22, 2018
@wcoder wcoder removed this from the future release milestone Sep 26, 2018
@ahouck
Copy link

ahouck commented Jun 2, 2020

I found the code already pulled out (and nicely in typescript) here in another comment by @pwnoy.

It looks like Highlightjs supports node out of the box along with plugins,
https://highlightjs.readthedocs.io/en/latest/plugin-api.html. Could we reconfigure this package to be added via a highlightjs plugin for both node and the browser? Or would it be better to create a fork?

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