dfop02 / html4docx

Convert html to docx
MIT License
7 stars 2 forks source link

Google Docs numbered lists #4

Open MikitaTsiutsiunou opened 2 months ago

MikitaTsiutsiunou commented 2 months ago

Hi! I am getting a DOCX file from HTML code.

image

If I open the downloaded file in Word, everything works perfectly; the numbered lists are numbered correctly.

image

But when I want to push the result to Google Docs, the numbered lists don't work correctly, and ol start="1" doesn't help.

Снимок экрана 2024-08-21 141846

dfop02 commented 2 months ago

Hello @MikitaTsiutsiunou, I'll take a look on this issue later on this week, probably there is something that we can do to avoid this bug on Google Docs. I also have confirmed that there is other small bugs about this feature that I would fix too.

dfop02 commented 2 months ago

Hi @MikitaTsiutsiunou ! I made a try on the branch release/1.0.5 and put on the PR. Please take a try if helps with your problem, I couldn't solve by complete, but at least for 3 depth level should works now.

MikitaTsiutsiunou commented 2 months ago

Hi @MikitaTsiutsiunou ! I made a try on the branch release/1.0.5 and put on the PR. Please take a try if helps with your problem, I couldn't solve by complete, but at least for 3 depth level should works now

Everything got worse

Google Dock: image

World Pad image

This is what it should look like image

dfop02 commented 1 month ago

Hello, I'll look again to this feature this weekend. Meanwhile, if you find a better solution, you're welcome to open a PR too :)

dfop02 commented 1 month ago

@MikitaTsiutsiunou could you please share your HTML code here, I'll make some tests using your final HTML as source. On my tests it works more consistently, maybe could be some problem about a charset or unexpected character, that's why I want try with your HTML. Meanwhile, take a try using english to see if the results are the same.