Commit 66be03f7 authored by julien's avatar julien

remove empty ol elements at the end of the page

parent 45057f70
......@@ -17,7 +17,10 @@ class Lists extends Handler {
for (var list of orderedLists) {
if (list.hasChildNodes()) {
list.start = list.firstElementChild.dataset.itemNum;
}
}
else {
list.parentNode.removeChild(list);
}
}
}
......
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