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

Highlight result of line numbers rendering like highlight js lib #84

Open
Smascer opened this issue Apr 27, 2021 · 0 comments
Open

Highlight result of line numbers rendering like highlight js lib #84

Smascer opened this issue Apr 27, 2021 · 0 comments

Comments

@Smascer
Copy link

Smascer commented Apr 27, 2021

Highlight.js lib gives you a stream with the option to react when highlighting is finished.
It would be nice to have same feature with the line numbers lib. Because when HighlightResult is coming, line numbers still not finished at this moment and it is not possible to react correctly e.g. to use css selectors to jump to some line or to highlight background.
Css selecteros like (.hljs-ln-line[data-line-number="55"]) can be used only when rendering is fully finished, but there is no event to catch this moment.

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

2 participants