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

Add paraIds to w:p elements #45

Open
christianvoigt opened this issue Jan 4, 2024 · 1 comment
Open

Add paraIds to w:p elements #45

christianvoigt opened this issue Jan 4, 2024 · 1 comment

Comments

@christianvoigt
Copy link

Is your feature request related to a problem? Please describe.
In our app I am relying on paraIds ("w14:paraId" attributes) to identify specific w:p elements in the docx file and apply changes to them. Docx files from Word or Google Docs do contain these attributes. Docx files generated with remark-docx do not seem to have paraIds.

Describe the solution you'd like
Generate ids for each w:p element and add them as w14:paraId attributes.

Describe alternatives you've considered
Right now I have to postprocess the docx file to add the paraIds in our own code.

@lancejpollard
Copy link

lancejpollard commented Feb 11, 2024

@christianvoigt how do you do the postprocessing? Can you share sample code?

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

No branches or pull requests

2 participants