Skip to content

Skip some code blocks #66

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

Closed
peske opened this issue May 19, 2019 · 1 comment
Closed

Skip some code blocks #66

peske opened this issue May 19, 2019 · 1 comment
Milestone

Comments

@peske
Copy link
Contributor

peske commented May 19, 2019

Is your feature request related to a problem? Please describe.
In some cases, I don't want all the code blocks on a page to be numbered. Although it is currently possible by using block-by-block initialization (hljs.lineNumbersBlock(block)), it would be great if somehow I can mark code blocks to be skipped even with hljs.initLineNumbersOnLoad() initialization.

Describe the solution you'd like
A custom class that can be set to <code> element, marking it for skipping.

Describe alternatives you've considered
N/A

Additional context
N/A

@peske
Copy link
Contributor Author

peske commented May 19, 2019

Actually, I've already implemented that in my fork, and I've created a PR here: #65

@wcoder wcoder added this to the vNext milestone May 30, 2020
@wcoder wcoder mentioned this issue May 30, 2020
@wcoder wcoder closed this as completed May 30, 2020
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