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

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

Open
Markiz9999 opened this issue Dec 2, 2024 · 0 comments
Open
Labels

Comments

@Markiz9999
Copy link

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.

@Markiz9999 Markiz9999 changed the title Adding lists to footnotes results in broken DOCX generation Adding lists to footnotes results to the generation of broken DOCX Dec 2, 2024
@dolanmiu dolanmiu added the bug label Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants