Commit 45057f70 authored by julien's avatar julien

fix: list that start at the end of the page dont brake rendering anymore

parent 1fac52c1
This diff is collapsed.
......@@ -15,7 +15,9 @@ class Lists extends Handler {
afterPageLayout(pageElement, page, breakToken, chunker) {
var orderedLists = pageElement.getElementsByTagName("ol");
for (var list of orderedLists) {
if (list.hasChildNodes()) {
list.start = list.firstElementChild.dataset.itemNum;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment