to configure docx by tag syntax #1161
Replies: 3 comments 6 replies
-
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.
-
docxload v2 has been released, compatible with the latest docx package and optimized for syntax parsing logic. It supports JS/TS. Looking forward to your use and PRs. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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