pqzx / html2docx

Convert html to docx
MIT License
69 stars 49 forks source link

Image styles - alignments + dimension(pixel/pt only) #29

Open maifeeulasad opened 2 years ago

maifeeulasad commented 2 years ago

added style for image

    For right-alignment: `'float: right;'`
    For center-alignment: `'display: block; margin-left: auto; margin-right: auto;'`
    Everything else would be Left aligned

All tests passed, and the output looks fine, like: mr4 mr1 mr2 mr3

maifeeulasad commented 2 years ago

Looks something like this: mr8 mr5 mr6 mr7

pqzx commented 2 years ago

Thanks for the PR @maifeeulasad , this looks good. Minor comment.

maifeeulasad commented 2 years ago

@pqzx really appreciate it. Let me know if anything else is required. Thanks.

maifeeulasad commented 2 years ago

@pqzx fixed all linting issues at https://github.com/pqzx/html2docx/pull/29/commits/bd6cc8f59f62c60f54f205c1c73055fbae476489

maifeeulasad commented 2 years ago

Hello @pqzx, any update regarding this?

Does it require any additional change? Please let me know. Thanks.