feat(highlighting): add jinja2

This commit is contained in:
Elian Doran 2025-05-18 21:24:59 +03:00
parent a8f810becd
commit a0140455bf
No known key found for this signature in database
2 changed files with 2 additions and 1 deletions

View File

@ -39,6 +39,7 @@
* Syntax highlighting in code blocks for text notes: * Syntax highlighting in code blocks for text notes:
* Added support for Cypher. * Added support for Cypher.
* Added support for XML-DTD. * Added support for XML-DTD.
* Added support for Jinja2.
* Mermaid diagrams: basic syntax highlight (not all diagram types are supported) and code folding. * 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. * 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 * [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

View File

@ -31,7 +31,7 @@ const byMimeType: MimeRecord = {
"text/coffeescript": () => import("highlight.js/lib/languages/coffeescript"), "text/coffeescript": () => import("highlight.js/lib/languages/coffeescript"),
"text/css": () => import("highlight.js/lib/languages/css"), "text/css": () => import("highlight.js/lib/languages/css"),
"text/html": () => import("highlight.js/lib/languages/xml"), "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/jsx": () => import("highlight.js/lib/languages/javascript"),
"text/mirc": null, "text/mirc": null,
"text/tiki": null, "text/tiki": null,