Browse Source

fix: tag in [[]] not working

Resolved #1540
Tienson Qin 4 years ago
parent
commit
8203886c2d
1 changed files with 9 additions and 0 deletions
  1. 9 0
      src/main/frontend/format/block.cljs

+ 9 - 0
src/main/frontend/format/block.cljs

@@ -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