to configure docx by tag template #1161
Replies: 2 comments 1 reply
-
This is cool! So kind of like React's Looking forward to what this can bring |
Beta Was this translation helpful? Give feedback.
-
I've used https://github.com/wvbe/docxml/blob/develop/demos/hello-world.tsx It involved writing a pretty simple custom JSX pragma. I've created some "component" that wrap the normal docx classes that would redirect some (traditionally called) "children" to the appropriate option of a parent component. The other props accepted by each component are based directly on the typing that docx already has. I think docx would need very little changes to support a full 1-to-1 feature parity. Intellisense is mostly fine; full code intelligence on any prop passed to the JSX components. The only thing AFAIK that doesn't work well is that the system will not warn me if I put a component (eg. I did make my JSX pragma a little bit more complex, and I intend to add more complexity to my script later too, for things like;
|
Beta Was this translation helpful? Give feedback.
-
Hello, i wrote a package called
docxload
to configuredocx
by tag template. https://github.com/trevorHsu/docxloadBeta Was this translation helpful? Give feedback.
All reactions