Skip to content

Adding lists to footnotes results to the generation of broken DOCX #2876

@Markiz9999

Description

@Markiz9999

Library generates broken DOCX when adding lists to footnotes.

Example of issue reproduction: https://codesandbox.io/p/sandbox/2sqj2q

After investigation, it seems to be a problem in the https://github.com/dolanmiu/docx/blob/master/src/export/packer/next-compiler.ts. There is no logic that replaces the numbering for footnotes, as is done in other parts of DOCX.

As I can see, there is also no logic to image replacement for footnotes, so adding images to them will also break the file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions