diff --git a/resources/compiled_coffeescript.zip b/resources/compiled_coffeescript.zip index dc13c55307..3a2c4183af 100644 Binary files a/resources/compiled_coffeescript.zip and b/resources/compiled_coffeescript.zip differ diff --git a/src/calibre/ebooks/oeb/display/extract.coffee b/src/calibre/ebooks/oeb/display/extract.coffee index 7df5c2d458..a314d14257 100644 --- a/src/calibre/ebooks/oeb/display/extract.coffee +++ b/src/calibre/ebooks/oeb/display/extract.coffee @@ -158,6 +158,11 @@ class CalibreExtract is_footnote_container = is_epub_footnote(start_elem) for elem in get_parents_and_self(start_elem) elem.do_not_hide = true + style = window.getComputedStyle(elem) + if style.display == 'list-item' and style.listStyleType not in ['disc', 'circle', 'square'] + # We cannot display list numbers since they will be + # incorrect as we are removing siblings of this element. + elem.style.listStyleType = 'none' for elem in document.body.getElementsByTagName('*') if in_note if known_targets.hasOwnProperty(elem.getAttribute('id'))