mirror of
https://github.com/logseq/logseq.git
synced 2026-05-04 02:46:45 +00:00
fix: hljs language mode
This commit is contained in:
@@ -2614,9 +2614,12 @@
|
||||
(highlight/html-export attr code)
|
||||
|
||||
:else
|
||||
(let [language (if (contains? #{"edn" "clj" "cljc" "cljs" "clojure"} language) "text/x-clojure" language)]
|
||||
(let [language (if (contains? #{"edn" "clj" "cljc" "cljs"} language) "clojure" language)]
|
||||
(if (:slide? config)
|
||||
(highlight/highlight (str (medley/random-uuid)) {:data-lang language} code)
|
||||
(highlight/highlight (str (medley/random-uuid))
|
||||
{:class (str "language-" language)
|
||||
:data-lang language}
|
||||
code)
|
||||
[:div
|
||||
(lazy-editor/editor config (str (dc/squuid)) attr code options)
|
||||
;; FIXME: The following code seemed unreachable
|
||||
|
||||
Reference in New Issue
Block a user