mirror of
https://github.com/logseq/logseq.git
synced 2026-04-29 16:36:27 +00:00
fix: block timestamps in the code block
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
[clojure.string :as string]
|
||||
[dommy.core :as dom]
|
||||
[frontend.utf8 :as utf8]
|
||||
[frontend.util.property :as property]
|
||||
["codemirror" :as cm]
|
||||
["codemirror/addon/edit/matchbrackets"]
|
||||
["codemirror/addon/edit/closebrackets"]
|
||||
@@ -63,7 +64,7 @@
|
||||
(:block/uuid config)
|
||||
(let [block (db/pull [:block/uuid (:block/uuid config)])
|
||||
format (:block/format block)
|
||||
content (:block/content block)
|
||||
content (property/remove-properties format (:block/content block))
|
||||
full-content (:full_content (last (:rum/args state)))]
|
||||
(when (and full-content (string/includes? content full-content))
|
||||
(let [lines (string/split-lines full-content)
|
||||
|
||||
Reference in New Issue
Block a user