-
-
Notifications
You must be signed in to change notification settings - Fork 516
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
Using different docx based libraries do not function well together. #2988
Comments
Possible solution - move relationship tracking logic to packer. Keep the rest of the classes free from relationship ids |
To reproduce the exact issue check out this - https://github.com/tiny-md/mdast2docx/blob/8324415880de84638ed2a985949d33feb6067576/lib/src/section.ts#L106 |
@dolanmiu, any action plan for this? Can you help me understand how to fix this? It seems the compiler is heavily using the relationships created at the time of creating the elements, i.e., new Paragraph, new Run, etc. Instead, if we could count/create fresh relationships at packer step, I could generate elements anywhere and add them to the document. |
The root cause is some sort of internal mapping when new nodes are craeted.
For example
Produced an invalid document.
The text was updated successfully, but these errors were encountered: