瀏覽代碼

fix: parser

Tienson Qin 4 年之前
父節點
當前提交
92c284e67d
共有 2 個文件被更改,包括 2 次插入3 次删除
  1. 1 1
      package.json
  2. 1 2
      src/main/frontend/format/block.cljs

+ 1 - 1
package.json

@@ -68,7 +68,7 @@
         "gulp-cached": "^1.1.1",
         "ignore": "^5.1.8",
         "jszip": "^3.5.0",
-        "mldoc": "^0.4.1",
+        "mldoc": "^0.4.8",
         "mousetrap": "^1.6.5",
         "path": "^0.12.7",
         "react": "^17.0.1",

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

@@ -519,5 +519,4 @@
 
 (defn trim-break-lines!
   [ast]
-  (->> (drop-while break-line-paragraph? ast)
-       (take-while (complement break-line-paragraph?))))
+  (->> (drop-while break-line-paragraph? ast)))