enhance: allow user macros for :url property values

and single line :default values
This commit is contained in:
Gabriel Horner
2024-02-22 14:13:59 -05:00
parent 531a8ef533
commit bfc5bf9ccc
6 changed files with 52 additions and 18 deletions

View File

@@ -144,18 +144,6 @@ and handles unexpected failure."
(state/add-block-ast-cache! block-uuid content result)
result))))))
(defn macro-subs
[macro-content arguments]
(loop [s macro-content
args arguments
n 1]
(if (seq args)
(recur
(string/replace s (str "$" n) (first args))
(rest args)
(inc n))
s)))
(defn break-line-paragraph?
[[typ break-lines]]
(and (= typ "Paragraph")