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

HtmlDocumentStyle changes how styles are loaded #134

Closed pauldbentley closed 1 week ago

pauldbentley commented 1 year ago

Commit 3d8dbfbd304510d1a704172dbc95b72a386de61a seems to change how the styles are loaded.

Previously we would get for example:

"GridTable5Dark-Accent5" "Grid Table 5 Dark Accent 5"

But after this commit we only get:

"Grid Table 5 Dark Accent 5"

Is this intentional? It is causing issues styling tables with a css class="GridTable5Dark-Accent5"

onizet commented 1 week ago

After testing, it seems v3 is now correctly handling the style names as before. Sorry about that, I will enforce a new rule to ensure submitted PR respect the Unit Testing