Releases: onizet/html2openxml
Release 3.2.0
Some API methods have been flagged as obsolete with a clear message of what to use instead. Those obsoletes are designed to highlight the expected output of the API and remove disambiguation between all the "Parse" methods. Documentation have been refreshed as well. No breaking changes as it maintain existing behaviour.
ParseHtml (string html) -> ParseBody
Parse(string html) -> ParseAsync
This release bring support for parsing into Header and Footer which was requested by open source project Cervantes (thanks for your support), a collaborative platform designed specifically for pentesters and red teams.
Release 3.1.1
Release 3.1.0
- Fix table Cell borders are wrongly applied on the run #156
- Correctly handle RTL layout for text, list, table and document scope #86 #66
- Support property line-height #52
- Fallback to
background
style attribute as many users use this simplified attribute version - In
HtmlDomExpression.CreateFromHtmlNode
, use the correct casting toIElement
rather thanIHtmlElement
, to prevent crash ifsvg
node is encountered
Release 3.0.1
Release 3.0
- AngleSharp is now the backend parser for Html
- Refactoring to use the Interpreter/Composite design pattern, which ease the code maintenance
- Lots of new unit test cases (200+)
- Rewriting of list (correct handling of nested style, restarting numbers and consecutive)
- Rewriting of table (row span, col span, col tags driving styles)
- Parallel download of images at early stage of the parsing.
Release 3.0-beta
- AngleSharp is now the backend parser for Html
- Refactoring to use the Interpreter/Composite design pattern, which ease the code maintenance
- Lots of new unit test cases (~200)
- Rewriting of list (correct handling of nested style, restarting numbers and consecutive)
- Rewriting of table (row span, col span, col tags driving styles)
- Parallel download of images at early stage of the parsing.
Release 2.3
What's Changed
- better table border style
- Bump System.Net.Http from 4.3.0 to 4.3.4 in /src/Html2OpenXml by @dependabot in #99
- keep processing html on image download error by @albertoantunes in #103
- Updates DocumentFormat.OpenXml to 2.15.0 by @PrzemyslawKlys in #108
- support for styling ordered/unordered lists and list elements by @fire-oak in #109
New Contributors
- @DynaSpan made their first contribution in #77
- @mattiamerzi made their first contribution in #78
- @alegarro made their first contribution in #95
- @dependabot made their first contribution in #99
- @albertoantunes made their first contribution in #103
- @PrzemyslawKlys made their first contribution in #108
- @fire-oak made their first contribution in #109
Support of OpenXml 2.12.0+
This release bring back support to NET 4.6+, NET Standard 1.3 and NET Standard 2.0.
Use new API OpenXmlCompositeElement.AddChild(OpenXmlElement)
to add children in the correct order per schema, introduces in OpenXML 2.12.0. Previous version of Html2OpenXml was using internal code via Reflection.
Support of OpenXml >= 2.11.0
Release after the PR #71 , which fix a fatal crash with OpenXml >= 2.11.0.
[TLDR] Details are explained in #70
To conform to the OpenXml XSD, this library use an internal method of OpenXml library, to resolve the order of the style tags.
After some internal refactoring of OpenXml, it appears the internal code was no longer accessible.
Taylor, one of the maintainers of OpenXml gratefully provide a PR to accommodate the new API.
.Net Core support
This is a major new version as this library now support .net standard 1.4, additionaly to net 3.5, 4.0 and 4.6
Changeset:
New Features
- <blockquote> now process the "cite" attribute to add a footnote
- Parser is more stable
- On blank document, the style are automatically registred
- Text-decoration style attribute can contains multiple values separated by a space
- Add support for title on link (tooltip)
- Improve robustness regarding html color parsing (issue #13, issue #4) : can be either rgba, hsla, hex (3 or 6 length) and percentage values are now supported (fix issue #4)
Bug fixes
- Fix applying style inside table to subsequent cells (issue #12, #17 and #20).
- Indentation correctly the List Numbering also with nested (issue #11)
- Fix creating footnote with URI containing a space or where the protocol is missing (bug detected on .netcore)
- Register missing styles based on predefined MS Word "Accent 1" theme (fix issue #21 and #22)
- Fix background-color applied to (issue #20)
- Support inline base64 images that contains newline (issue #8)
- Fix table column width when percent is used (thanks to jheine for reporting this)
- Fix bug when font is set multiple times per html tag
FYI
Due to refactoring in the .Net Standard API, this library no longer has dependency on System.Drawing and System.ComponentModel