diff --git a/docs/Release Notes/Release Notes/v0.94.0.md b/docs/Release Notes/Release Notes/v0.94.0.md index 21d9b2cb5..e95aedce7 100644 --- a/docs/Release Notes/Release Notes/v0.94.0.md +++ b/docs/Release Notes/Release Notes/v0.94.0.md @@ -39,6 +39,7 @@ * Syntax highlighting in code blocks for text notes: * Added support for Cypher. * Added support for XML-DTD. + * Added support for Jinja2. * Mermaid diagrams: basic syntax highlight (not all diagram types are supported) and code folding. * Slight organization in Appearance settings: code block themes are now in "Text Notes", added a "Related settings" section in Appearance. * [Added support for opening and activating a note in a new tab using Ctrl+Shift+click on notes in the launcher pane, note tree, or note images](https://github.com/TriliumNext/Notes/pull/1854) by @SiriusXT diff --git a/packages/highlightjs/src/syntax_highlighting.ts b/packages/highlightjs/src/syntax_highlighting.ts index 2560965e6..dceab0137 100644 --- a/packages/highlightjs/src/syntax_highlighting.ts +++ b/packages/highlightjs/src/syntax_highlighting.ts @@ -31,7 +31,7 @@ const byMimeType: MimeRecord = { "text/coffeescript": () => import("highlight.js/lib/languages/coffeescript"), "text/css": () => import("highlight.js/lib/languages/css"), "text/html": () => import("highlight.js/lib/languages/xml"), - "text/jinja2": null, + "text/jinja2": () => import("highlight.js/lib/languages/django"), "text/jsx": () => import("highlight.js/lib/languages/javascript"), "text/mirc": null, "text/tiki": null,