Skip to content
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

Conflict between TOC generation and footnotes in headings #151

Open
fweyh opened this issue Jul 22, 2014 · 1 comment
Open

Conflict between TOC generation and footnotes in headings #151

fweyh opened this issue Jul 22, 2014 · 1 comment

Comments

@fweyh
Copy link

fweyh commented Jul 22, 2014

Hi,

If a footnote is defined in a heading, the TOC generation seems to generate invalid XHTML.

For example, this HTMLBook content

<h1>Glossary<span data-type="footnote">Unless the field to which
it relates is stated (e.g., Digital Internet, Physical Internet or 
Logistics), the definition provided is general</span></h1>

will be transformed into the following invalid XHTML (imbricated <a> elements)

<li data-type="chapter"><a href="part04ch05.html#idm1623505328">
20. Glossary<a data-type="noteref" id="idm1623504688-marker"
 href="part04ch05.html#idm1623504688"><sup>11</sup></a>
</a></li>
@sandersk
Copy link
Contributor

Thanks @fbdcw. Great catch. That's indeed a bug. Will add logic to prevent footnotes in headings from being added to TOC entries, and will let you know when that's in place.

Sanders

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants