Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
feat(highlighting): add jinja2
Elian Dorana0140455bfe0
diff --git a/docs/Release Notes/Release Notes/v0.94.0.md b/docs/Release Notes/Release Notes/v0.94.0.mdindex 21d9b2cb57..e95aedce71 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 @SiriusXTdiff --git a/packages/highlightjs/src/syntax_highlighting.ts b/packages/highlightjs/src/syntax_highlighting.tsindex 2560965e69..dceab0137e 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,