New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
epub 3 validation error Error while parsing file 'element "span" not allowed here
#2987
Comments
Thank you for reporting. memo: following is reproducible example:
|
Note: This bug comes from docutils:
The span element is generated by |
Note: I posted a patch to docutils project: |
To support docutils-0.12, I added the same fix to HTML writer of Sphinx as a ad-hoc fix. Thank you for reporting. |
refs #2318: this incorrect rendering was introduced at #2318. In this change, we deprecated 'termsep' and made use of the 'classfire' node generated by docutils. However, at this time, because the HTML tag was outputted according to the node structure of docutils, the display was broken. refs #2987: This change may affect the #2987 fix. In my environment I could not reproduce the problem.
In CPython document, there is following
.. index::
usage:Sphinx builder writes (x)html like this:
This is invalid as html5, so EpubCheck 4.0.1 complains it is error:
The text was updated successfully, but these errors were encountered: