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

Support transforms after the highlight #2

Open
sergiolopes opened this issue Apr 16, 2013 · 4 comments
Open

Support transforms after the highlight #2

sergiolopes opened this issue Apr 16, 2013 · 4 comments

Comments

@sergiolopes
Copy link

I like the transforms hook this plugin exposes, but I need something after the code generation. My use case is that I want to add line numbers to the generated code–a feature that Highlight.js doesn't have.

@balupton
Copy link
Member

From memory you can add line numbers using css, perhaps that would work even better?

@sergiolopes
Copy link
Author

I don't think this is possible, because Highlight.js doesn't split lines in separate elements for us to match in CSS. I tried CSS counters too :)

@lukasMega
Copy link

Hello, is now possible to add line numbers?
Thanks for answer.
edit (after 1 hour): I started implementing it in javascript in client side (-;

@mikhailshilkov
Copy link

I also need a post-transform hook for some advanced post-formatting. Is it possible to implement something like postTransforms config?
It looks really easy to do, I even have a draft working.

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

No branches or pull requests

4 participants