From 755d74feffe3d43583af78f4e321ac57f5ec4897 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sun, 18 May 2025 21:30:33 +0300 Subject: [PATCH] feat(highlighting): add clojurescript --- docs/Release Notes/Release Notes/v0.94.0.md | 1 + packages/highlightjs/src/syntax_highlighting.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/Release Notes/Release Notes/v0.94.0.md b/docs/Release Notes/Release Notes/v0.94.0.md index e95aedce7..f84eafe65 100644 --- a/docs/Release Notes/Release Notes/v0.94.0.md +++ b/docs/Release Notes/Release Notes/v0.94.0.md @@ -40,6 +40,7 @@ * Added support for Cypher. * Added support for XML-DTD. * Added support for Jinja2. + * Added support for ClojureScript. * 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 dceab0137..334079867 100644 --- a/packages/highlightjs/src/syntax_highlighting.ts +++ b/packages/highlightjs/src/syntax_highlighting.ts @@ -48,7 +48,7 @@ const byMimeType: MimeRecord = { "text/x-c++src": () => import("highlight.js/lib/languages/cpp"), "text/x-cassandra": null, "text/x-clojure": () => import("highlight.js/lib/languages/clojure"), - "text/x-clojurescript": null, + "text/x-clojurescript": () => import("highlight.js/lib/languages/clojure"), "text/x-cmake": () => import("highlight.js/lib/languages/cmake"), "text/x-cobol": null, "text/x-common-lisp": () => import("highlight.js/lib/languages/lisp"),