mirror of
https://github.com/logseq/logseq.git
synced 2026-05-02 18:06:32 +00:00
@@ -717,8 +717,10 @@
|
||||
(if macro-content
|
||||
(let [ast (->> (mldoc/->edn macro-content (mldoc/default-config format))
|
||||
(map first))
|
||||
block? (mldoc/block-with-title? (ffirst ast))]
|
||||
(if block?
|
||||
paragraph? (and (= 1 (count ast))
|
||||
(= "Paragraph" (ffirst ast)))]
|
||||
(if (and (not paragraph?)
|
||||
(mldoc/block-with-title? (ffirst ast)))
|
||||
[:div
|
||||
(markup-elements-cp (assoc config :block/format format) ast)]
|
||||
(inline-text format macro-content)))
|
||||
|
||||
Reference in New Issue
Block a user