fix: block parsing

This commit is contained in:
Tienson Qin
2021-09-13 20:04:09 +08:00
parent 18b7a7864b
commit e978a8f972
2 changed files with 7 additions and 5 deletions

View File

@@ -362,7 +362,9 @@
:else
(let [content' (str (config/get-block-pattern format) (if block-with-title? " " "\n") content)]
[content content']))
block (assoc block :block/content content')
block (assoc block
:block/content content'
:block/format format)
block (apply dissoc block (remove #{:block/pre-block?} db-schema/retract-attributes))
block (block/parse-block block)
block (if (and first-block? (:block/pre-block? block))