Browse Source

fix: don't parse refs from quoted string

Tienson Qin 1 năm trước cách đây
mục cha
commit
a324d845b2

+ 2 - 0
deps/graph-parser/src/logseq/graph_parser/block.cljs

@@ -154,6 +154,8 @@
   (cond
   (cond
     (coll? value)
     (coll? value)
     (filter (fn [v] (and (string? v) (not (string/blank? v)))) value)
     (filter (fn [v] (and (string? v) (not (string/blank? v)))) value)
+    (and (string? value) (= \" (first value) (last value)))
+    nil
     (string? value)
     (string? value)
     (let [ast (gp-mldoc/inline->edn value (gp-mldoc/default-config format))]
     (let [ast (gp-mldoc/inline->edn value (gp-mldoc/default-config format))]
       (text/extract-refs-from-mldoc-ast ast))
       (text/extract-refs-from-mldoc-ast ast))