Browse Source

fix: CI tests and lint warnings

Tienson Qin 3 years ago
parent
commit
db7d1cde09
2 changed files with 3 additions and 1 deletions
  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