mirror of
https://github.com/logseq/logseq.git
synced 2026-04-27 15:45:00 +00:00
chore: auto heading based on level
This commit is contained in:
committed by
Tienson Qin
parent
95c803d614
commit
7ba7c9e087
@@ -3524,7 +3524,7 @@
|
||||
|
||||
(defn set-heading!
|
||||
[block-id format heading]
|
||||
(if (= format :markdown)
|
||||
(if (and (= format :markdown) (not (true? heading)))
|
||||
(let [repo (state/get-current-repo)
|
||||
block (db/entity [:block/uuid block-id])
|
||||
content' (commands/set-markdown-heading (:block/content block) heading)]
|
||||
|
||||
Reference in New Issue
Block a user