fix: property regression : # should be a delimiter

Close #3916

Tests added.
This commit is contained in:
Tienson Qin
2022-01-16 12:35:32 +08:00
parent d360a11ed8
commit 2401ce9e9a
10 changed files with 94 additions and 123 deletions

View File

@@ -168,9 +168,6 @@
(= "List" (first block))
(:name (first (second block)))))
(defonce non-parsing-properties
(atom #{"background-color" "background_color"}))
;; TODO: we should move this to mldoc
(defn extract-properties
[properties]
@@ -199,11 +196,10 @@
"id"
k)
v (if (coll? v)
(->> (remove util/wrapped-by-quotes? v)
(remove string/blank?))
(remove string/blank? v)
(if (string/blank? v)
nil
(property/parse-property k v)))
(text/parse-property k v)))
k (keyword k)
v (if (and
(string? v)