fix: [display name]([[page name]]) is not counted as a page reference

This commit is contained in:
Tienson Qin
2021-06-17 22:23:39 +08:00
parent 2eb173070d
commit 2c7be3bab9

View File

@@ -36,7 +36,12 @@
(or
(and
(= typ "Search")
;; FIXME: alert error
(string? (second (:url (second block))))
(text/page-ref? (second (:url (second block))))
(text/page-ref-un-brackets! (second (:url (second block)))))
(and
(= typ "Search")
(not (contains? #{\# \* \/ \[} (first (second (:url (second block))))))
(let [page (second (:url (second block)))
ext (some-> (util/get-file-ext page) keyword)]