chore: auto heading based on level

This commit is contained in:
Konstantinos Kaloutas
2022-10-14 13:43:50 +03:00
committed by Tienson Qin
parent 95c803d614
commit 7ba7c9e087
3 changed files with 4 additions and 4 deletions

View File

@@ -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)]