mirror of
https://github.com/logseq/logseq.git
synced 2026-05-05 19:36:35 +00:00
fix: don't parse quoted string as page references for properties
This commit is contained in:
@@ -185,9 +185,7 @@
|
||||
(update :roam_tags (constantly roam-tags))
|
||||
(update :filetags (constantly filetags)))
|
||||
properties (medley/filter-kv (fn [k v] (not (empty? v))) properties)
|
||||
properties (medley/map-vals (fn [v] (if (and (string? v) (>= (count v) 2) (= (first v) (last v) "\""))
|
||||
(subs v 1 (dec (count v)))
|
||||
v)) properties)]
|
||||
properties (medley/map-vals util/unquote-string-if-wrapped properties)]
|
||||
(if (seq properties)
|
||||
(cons [["Properties" properties] nil] other-ast)
|
||||
original-ast))
|
||||
|
||||
Reference in New Issue
Block a user