fix: replace special id with original name instead of name

This commit is contained in:
Tienson Qin
2023-07-05 11:57:02 +08:00
parent 4fa4afa156
commit 4069761420

View File

@@ -67,7 +67,7 @@
(reduce
(fn [content ref]
(if (:block/name ref)
(string/replace content (str config/page-ref-special-chars (:block/uuid ref)) (:block/name ref))
(string/replace content (str config/page-ref-special-chars (:block/uuid ref)) (:block/original-name ref))
content))
content
refs))