Skip to content

Conversation

@james-atticus
Copy link

@james-atticus james-atticus commented Jan 20, 2026

Fixes #2876

Adds support for images and lists in footnotes:

image

Drive-by fix for lists in headers/footers:

image


public prepForXml(context: IContext): IXmlableObject | undefined {
if (context.viewWrapper instanceof DocumentWrapper) {
if (!(context.viewWrapper instanceof FontWrapper)) {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There was already logic in next-compiler.ts to call this.numberingReplacer.replace for headers and footers, but the replacements weren't being put into Numbering because of this viewWrapper check. I had a look at what implements IViewWrapper and it looks like the only one we now want to exclude here is FontWrapper.

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.

Adding lists to footnotes results to the generation of broken DOCX

1 participant