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

Can you revive this and add support for block/text/attribute? #1

Open
titanism opened this issue Aug 6, 2024 · 4 comments
Open

Can you revive this and add support for block/text/attribute? #1

titanism opened this issue Aug 6, 2024 · 4 comments

Comments

@titanism
Copy link

titanism commented Aug 6, 2024

We would sponsor your efforts 🙏

Ref: hackjutsu/Lepton#135 and highlightjs/highlight.js#1159

@titanism
Copy link
Author

titanism commented Aug 6, 2024

@titanism
Copy link
Author

titanism commented Aug 6, 2024

Another improvement is to add docs to README to show user const highlightPug = require('highlight-pug'); and then hljs.registerLanguage("pug", highlightPug); as opposed to invoking this yourself in index.js, which is just user doing require('highlight-pug'); by itself and not being able to pass a custom hljs instance (relying on global, which is anti-pattern).

@titanism
Copy link
Author

titanism commented Aug 6, 2024

We've published @forwardemail/highlight-pug v1.0.0 to npm in the interim.

Repo: https://github.com/forwardemail/highlight-pug

@titanism
Copy link
Author

titanism commented Aug 6, 2024

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

1 participant