inokawa / remark-docx

remark plugin to compile markdown to docx (Microsoft Word, Office Open XML).
https://inokawa.github.io/remark-docx/
MIT License
34 stars 12 forks source link

Add paraIds to w:p elements #45

Open christianvoigt opened 8 months ago

christianvoigt commented 8 months ago

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 commented 7 months ago

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