diff --git a/CHANGES b/CHANGES index 6602511..ac5e240 100644 --- a/CHANGES +++ b/CHANGES @@ -1,7 +1,10 @@ 0.14.3 August ??, 2026 +- The `aside` element is now allowed. becomes div[class=aside] in epub2. + - In both in HTML and EPUB, for improved accessibility, added the css rule `a[href] {text-decoration: underline;}` to make sure links are underlined. Previously, we underlined all `a` elements, which ignored prior usage as an link target. + - handling of inline SVG has been improved. - the inline SVG element is now handled whether or not it has set the svg namespace. - inline SVG is changed to standalone files in EPUB2 diff --git a/src/ebookmaker/writers/EpubWriter.py b/src/ebookmaker/writers/EpubWriter.py index c2f62ff..89c4afb 100644 --- a/src/ebookmaker/writers/EpubWriter.py +++ b/src/ebookmaker/writers/EpubWriter.py @@ -1081,7 +1081,8 @@ def fix_html5(xhtml): # replace html5 block tags usedtags = set() - for newtag in ['article', 'figcaption', 'figure', 'footer', 'header', 'section', 'nav', 'main']: + for newtag in ['article', 'figcaption', 'figure', 'footer', 'header', 'section', 'nav', + 'main', 'aside']: for tag in xpath(xhtml, f'//xhtml:{newtag}'): usedtags.add(newtag) tag.tag = NS.xhtml.div