Closed shareefalis closed 1 month ago
Hey- we have support for the italics tag. Are you saying in certain scenarios it is not working @shareefalis ?
https://github.com/TurboDocx/html-to-docx/blob/main/src/helpers/xml-builder.js#L704
Oh thank, i see, yeah it is not not working in some scenario like multiple format on the same line, our dom is structured
here is the the browser rendering
output of the exported docx in microsoft word
Let me know if there are some more info i can provide to you guys and it is an awesome library btw!
Can you provide a full repro? And on top of that, if you are able to make the PR that would help us a lot too (juggling a few things).
Glad you like the library 😃
On Sat, Sep 21, 2024 at 10:32 AM Shareef Ali @.***> wrote:
Let me know if there are some more info i can provide to you guys and it is an awesome library btw!
— Reply to this email directly, view it on GitHub https://github.com/TurboDocx/html-to-docx/issues/44#issuecomment-2365209372, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACHLNTTET5V7CFBGUUBIDQDZXV7PJAVCNFSM6AAAAABOSWAVHOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRVGIYDSMZXGI . You are receiving this because you commented.Message ID: @.***>
<p><strong>Temporary</strong> <em>lorem</em> <u>quill</u></p>
pipe this to html to docx library
I think you are missing. em
here https://github.com/TurboDocx/html-to-docx/blob/main/src/helpers/xml-builder.js#L857
addressed in #45
Hi there!
We have an app that uses this library, and it would be great to port the changes from the old repo. Currently, I’m using a temporary workaround that resolves the issue by converting the
<em>
tag to the<i>
tag.Here’s the PR that fixes this, although it was never merged into the old repo: https://github.com/privateOmega/html-to-docx/pull/226/
Thanks!