Skip to content

page break inside <ol> without a single <li> if ol::before has content declared. it breaks pagedjs processing

this text is form our chat session:

in hugo footnotes are placed after all content into <section class="footnotes"... followed by <hr>... then it goes with <ol> and bunch of <li>...</li>.. without much thinking i added this css: .footnotes ol::before { content: "Endnotes";}

and that picked up a weird bug for only one out of five articles.. so the page break would come straight after <ol> without having any <li> and pagedjs would break because dataset is null...

i ended up doing it differently.. just making <hr> with no border and in its ::after placing that "Endnotes".. that keeps it fine..

empty_ol_pagebreak.tgz

dev_tools_screenshot