mirror of https://github.com/logseq/logseq
fix: macro render
parent
29a374cb76
commit
f2cf388abe
|
@ -953,11 +953,11 @@
|
||||||
macro-content (when macro-content
|
macro-content (when macro-content
|
||||||
(template/resolve-dynamic-template! macro-content))]
|
(template/resolve-dynamic-template! macro-content))]
|
||||||
(render-macro config name arguments macro-content format))
|
(render-macro config name arguments macro-content format))
|
||||||
(when-let [macro-txt (macro->text name arguments)]
|
(let [macro-content (or
|
||||||
(let [macro-txt (when macro-txt
|
(get (state/get-macros) name)
|
||||||
(template/resolve-dynamic-template! macro-txt))
|
(get (state/get-macros) (keyword name)))
|
||||||
format (get-in config [:block :block/format] :markdown)]
|
format (get-in config [:block :block/format] :markdown)]
|
||||||
(render-macro config name arguments macro-txt format))))))
|
(render-macro config name arguments macro-content format)))))
|
||||||
|
|
||||||
:else
|
:else
|
||||||
""))
|
""))
|
||||||
|
|
Loading…
Reference in New Issue