onizet / html2openxml

Html2OpenXml is a small .Net library that convert simple or advanced HTML to plain OpenXml components. This program has started in 2009, initially to convert user's comments from SharePoint to Word.
MIT License
297 stars 106 forks source link

Table CSS issue #119

Open vishalpatel24 opened 2 years ago

vishalpatel24 commented 2 years ago

I have an HTML containing table in it with some CSS for the borders, but when it converts to OpenXML it doesn't contain the border details.

Table HTML: `

1 2
3 4
` image

Generated border details from OpenXML `

    <w:left w:val="single" w:sz="1" />
    <w:bottom w:val="single" w:sz="1" />
    <w:right w:val="single" w:sz="1" />
    <w:insideH w:val="single" w:sz="1" />
    <w:insideV w:val="single" w:sz="1" />

</w:tblBorders>`