I've tried to convert docx file to html by using python libraries docx and mammoth.
I've achieved to convert a file from docx to html at basic level.
However, I couldn't find a way to properly take the docx elements style like alignment, color or font-size etc to the html output.
doc = docx.Document("hello world.docx")
print(doc.paragraphs[0].alignment)
I can reach some style properties with the codes like above. It gives me an output like
CENTER (1)
or
RIGHT (2)
Is there any module or package which provides a maping .docx styles to css code, when converting the docs to html?