Skip to content

Commit

Permalink
fix: don't parse refs from quoted string
Browse files Browse the repository at this point in the history
  • Loading branch information
tiensonqin committed Apr 7, 2024
1 parent b5f0f58 commit a324d84
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deps/graph-parser/src/logseq/graph_parser/block.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@
(cond
(coll? value)
(filter (fn [v] (and (string? v) (not (string/blank? v)))) value)
(and (string? value) (= \" (first value) (last value)))
nil
(string? value)
(let [ast (gp-mldoc/inline->edn value (gp-mldoc/default-config format))]
(text/extract-refs-from-mldoc-ast ast))
Expand Down

0 comments on commit a324d84

Please sign in to comment.