mirror of
https://github.com/logseq/logseq.git
synced 2026-04-30 00:46:23 +00:00
fix: non-paragraph elements not showing up
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user