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

Add prismjs alias for nunjucks mapped to jinja2 #68

Closed
zachleat opened this issue Apr 26, 2022 · 2 comments
Closed

Add prismjs alias for nunjucks mapped to jinja2 #68

zachleat opened this issue Apr 26, 2022 · 2 comments
Labels
enhancement New feature or request
Milestone

Comments

@zachleat
Copy link
Member

Nunjucks is essentially a port of jinja2

https://mozilla.github.io/nunjucks/templating.html

@zachleat zachleat added the enhancement New feature or request label Apr 26, 2022
@zachleat zachleat added this to the 4.1.0 milestone Jun 28, 2022
@zachleat
Copy link
Member Author

Both njk and nunjucks will be aliased to jinja2 on 4.1.0+

@edwardhorsford
Copy link

@zachleat this doesn't seem to be working correctly for me, though it does answer why njk and nunjucks aren't erroring for me.

From my reading of this, when I use nunjucks it should look the same as jinja2 however they don't!

With nunjucks:
Screenshot 2024-01-25 at 18 21 50

With jinja2:
Screenshot 2024-01-25 at 18 22 26

It's clearly doing something with the highlighting, but it's not correct, and it's not the same as jinja2. I observe the same when used as a shortcode and when used with markdown backticks. Using plugin v5.0.0

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

No branches or pull requests

2 participants