diff --git a/resources/compiled_coffeescript.zip b/resources/compiled_coffeescript.zip index 6d6d44a610..a8e1948240 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 1d4d16f1d0..8d3091c261 100644 --- a/src/calibre/ebooks/oeb/display/extract.coffee +++ b/src/calibre/ebooks/oeb/display/extract.coffee @@ -63,7 +63,7 @@ is_footnote_link = (node, url, linked_to_anchors) -> [x, num] = [node, 3] while x and num > 0 style = window.getComputedStyle(x) - if style.verticalAlign in ['sub', 'super'] + if style.verticalAlign in ['sub', 'super', 'top', 'bottom'] return true x = x.parentNode num -= 1 @@ -72,7 +72,7 @@ is_footnote_link = (node, url, linked_to_anchors) -> children = (x for x in node.childNodes when x.nodeType == Node.ELEMENT_NODE) if children.length == 1 style = window.getComputedStyle(children[0]) - if style.verticalAlign in ['sub', 'super'] + if style.verticalAlign in ['sub', 'super', 'top', 'bottom'] return true eid = node.getAttribute('id') or node.getAttribute('name')