ソースを参照

fix: tags and alias doesn't support , in page properties

Tienson Qin 4 年 前
コミット
ece503d22a
1 ファイル変更2 行追加1 行削除
  1. 2 1
      src/main/frontend/format/mldoc.cljs

+ 2 - 1
src/main/frontend/format/mldoc.cljs

@@ -86,9 +86,10 @@
           properties (->> (take-while directive? ast)
                           (map (fn [[_ k v]]
                                  (let [k (keyword (string/lower-case k))
+                                       comma? (contains? #{:tags :alias :roam_tags} k)
                                        v (if (contains? #{:title :description :roam_tags} k)
                                            v
-                                           (text/split-page-refs-without-brackets v))]
+                                           (text/split-page-refs-without-brackets v comma?))]
                                    [k v])))
                           (into {}))
           macro-properties (filter (fn [x] (= :macro (first x))) properties)