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

Pug (ex-Jade) is not highlighted #135

Closed
BroFox86 opened this issue May 20, 2017 · 5 comments
Closed

Pug (ex-Jade) is not highlighted #135

BroFox86 opened this issue May 20, 2017 · 5 comments
Milestone

Comments

@BroFox86
Copy link

BroFox86 commented May 20, 2017

Pug (ex-Jade) is not highlighted on preview page

2017-05-20 22 15 20

@BroFox86 BroFox86 changed the title PUG (ex Jade) is not highlighted Pug (ex-Jade) is not highlighted May 20, 2017
@hackjutsu
Copy link
Owner

Hi @BroFox86 , thanks for reporting:)

It looks like the suffix .pug is not recognized by highlight.js at this moment. We need to map it to .jade internally.

@hackjutsu hackjutsu added the bug label May 20, 2017
@hackjutsu hackjutsu added this to the 1.2.x milestone May 20, 2017
@hackjutsu
Copy link
Owner

hackjutsu commented May 22, 2017

It turns out that Jade/Pug is not supported in highlight.js. I'll close this issue.

@BroFox86 , if you feel this support is necessary, highlight.js might be a better place for a feature request.

@titanism
Copy link

titanism commented Aug 6, 2024

@titanism
Copy link

titanism commented Aug 6, 2024

We (the team @forwardemail) are maintaining a fork of a package and can accept PR's at https://github.com/forwardemail/highlight-pug. See discussion at ztmd/highlight-pug#1.

Usage:

npm install @forwardemail/highlight-pug
const highlightPug = require('@forwardemail/highlight-pug');

// <https://github.com/ztmd/highlight-pug/issues/1>
hljs.registerLanguage('pug', highlightPug);

@titanism
Copy link

titanism commented Aug 6, 2024

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