Skip to content

Support footnotes in HTML#6917

Merged
laurmaedje merged 6 commits intomainfrom
html-footnote
Sep 17, 2025
Merged

Support footnotes in HTML#6917
laurmaedje merged 6 commits intomainfrom
html-footnote

Conversation

@laurmaedje
Copy link
Member

@laurmaedje laurmaedje commented Sep 12, 2025

This PR adds support for footnotes in HTML. The DOM structure is based on Digital Publishing ARIA and also relatively similar to what Pandoc emits. To implement footnotes in a final step, the PR first sets up some infrastructure, which is separated into individual commits.

Currently, footnotes are always emitted at the very end of the document's body. In the future, I want to expose a container element that can be placed by the user to customize the position (this element already exists, but is internal for now). This could feasibly also be supported in paged export. When the user emits their own html or body tag, footnotes are currently ignored, but in the future, the user would be expected to then also place their own footnote container.

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

Successfully merging this pull request may close these issues.

1 participant