فهرست منبع

fix: CI tests and lint warnings

Tienson Qin 3 سال پیش
والد
کامیت
db7d1cde09
2فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      src/main/frontend/format/mldoc.cljs
  2. 0 0
      src/test/frontend/format/mldoc_test.cljs

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

@@ -263,4 +263,6 @@
 (defn link?
   [format link]
   (when (string? link)
-    (= "Link" (ffirst (inline->edn link (default-config format))))))
+    (let [[type link] (first (inline->edn link (default-config format)))]
+      (and (= "Link" type)
+           (not (contains? #{"Page_ref" "Block_ref"} (first (:url link))))))))

+ 0 - 0
src/test/frontend/format/mldoc-test.cljs → src/test/frontend/format/mldoc_test.cljs