fix: ordered list can't be shown in reference list

close #2673
pull/3117/head
Tienson Qin 2021-11-12 11:25:29 +08:00
parent c982b16c54
commit e0ec9c6567
1 changed files with 4 additions and 2 deletions

View File

@ -1957,10 +1957,12 @@
[:page
(or page-original-name page-name)])
parents-props (doall
(for [{:block/keys [uuid title name] :as block} parents]
(for [{:block/keys [uuid title body name] :as block} parents]
(when-not name ; not page
[block
(->elem :span (map-inline config title))])))
(if (seq title)
(->elem :span (map-inline config title))
(->elem :div (markup-elements-cp config body)))])))
breadcrumb (->> (into [] parents-props)
(concat [page-name-props] (when more? [:more]))
(filterv identity)