mirror of
https://github.com/logseq/logseq.git
synced 2026-04-29 08:26:40 +00:00
refactor: simplify clojure lang mode setting
This commit is contained in:
@@ -270,10 +270,7 @@
|
||||
(when-let [mode (:data-lang attr)]
|
||||
(when-not (= mode "calc")
|
||||
[:div.extensions__code-lang
|
||||
(let [mode (string/lower-case mode)]
|
||||
(if (= mode "text/x-clojure")
|
||||
"clojure"
|
||||
mode))]))
|
||||
(string/lower-case mode)]))
|
||||
[:textarea (merge {:id id
|
||||
;; Expose the textarea associated with the CodeMirror instance via
|
||||
;; ref so that we can autofocus into the CodeMirror instance later.
|
||||
|
||||
Reference in New Issue
Block a user