fix: tag in [[]] not working

Resolved #1540
This commit is contained in:
Tienson Qin
2021-03-27 09:32:07 +08:00
parent a371c73a0b
commit 8203886c2d

View File

@@ -65,6 +65,15 @@
(string? argument)
(text/page-ref? argument))
(text/page-ref-un-brackets! argument))))
(and (vector? block)
(= "Tag" (first block)))
(let [text (second block)]
(when (and
(string? text)
(text/page-ref? text))
(text/page-ref-un-brackets! text)))
:else
nil)]
(when (and