fix: non-paragraph elements not showing up

This commit is contained in:
leizhe
2021-09-20 17:56:19 +09:00
committed by Tienson Qin
parent 0774e2b74a
commit 99295ed26a

View File

@@ -741,8 +741,7 @@
(defn trim-paragraph-special-break-lines
[[typ paras]]
(println typ paras)
(when (= typ "Paragraph")
(if (= typ "Paragraph")
(let [indexed-paras (map-indexed vector paras)
ast [typ (->> (filter
#(let [[index value] %]
@@ -752,7 +751,8 @@
(first (nth paras (dec index)))))))
indexed-paras)
(map #(last %)))]]
ast)))
ast)
[typ paras]))
(defn trim-break-lines!
[ast]