fix: link property causes wrong pages creation

This commit is contained in:
llcc
2022-03-06 19:10:50 +08:00
committed by Tienson Qin
parent 965bedf4fa
commit f02c21c95b
3 changed files with 23 additions and 6 deletions

View File

@@ -159,7 +159,8 @@
(contains? #{:background-color :background_color} (keyword k))))
(map last)
(map (fn [v]
(when (string? v)
(when (and (string? v)
(not (mldoc/link? format v)))
(let [v (string/trim v)
result (text/split-page-refs-without-brackets v {:un-brackets? false})]
(if (coll? result)