Repository navigation
Release v2.0.0
HtmlToMarkdownConverter v2.0.0 - Release Notes
🚀 What's New?
- Added a static method implementation for improved usability.
- The
ConvertHtmlToMarkdownmethod now returns a structuredResultobject containing:Markdown: The converted markdown string.Errors: A list of error logs, if any.
⚠️ Breaking Changes
-
The previous instance-based usage of
ConversionServicehas been replaced:- Old:
var conversionService = new ConversionService(); - New: Use the static method:
ConversionService.ConvertHtmlToMarkdown.
- Old:
-
Error Logging:
- Error logs are now accessible via the
Errorsproperty of the returnedResultobject. - Old:
conversionService.GetErrorLogs(); - New:
result.Errors.
- Error logs are now accessible via the
🔧 Migration Guide
To update your code:
- Replace all instances of
ConversionServicewith static one. - Update your method calls to handle the returned
Resultobject instead of separate methods. - Update the namepsace to
HtmlToMarkdown.Servicepreviously it wasHtmlToMarkdownService
📚 Example Usage
var result = ConversionService.ConvertHtmlToMarkdown("<p>Hello, World!</p>");
string markdownContent = result.Markdown;
List<string> errors = result.Errors; Full Changelog: v1.0.8...v2.0.0