Skip to content

Release v2.0.0

Choose a tag to compare

@lijotech lijotech released this 11 Apr 19:00
· 12 commits to master since this release
8a1cf4c

HtmlToMarkdownConverter v2.0.0 - Release Notes

🚀 What's New?

  • Added a static method implementation for improved usability.
  • The ConvertHtmlToMarkdown method now returns a structured Result object containing:
    • Markdown: The converted markdown string.
    • Errors: A list of error logs, if any.

⚠️ Breaking Changes

  1. The previous instance-based usage of ConversionService has been replaced:

    • Old: var conversionService = new ConversionService();
    • New: Use the static method: ConversionService.ConvertHtmlToMarkdown.
  2. Error Logging:

    • Error logs are now accessible via the Errors property of the returned Result object.
    • Old: conversionService.GetErrorLogs();
    • New: result.Errors.

🔧 Migration Guide

To update your code:

  1. Replace all instances of ConversionService with static one.
  2. Update your method calls to handle the returned Result object instead of separate methods.
  3. Update the namepsace to HtmlToMarkdown.Service previously it was HtmlToMarkdownService

📚 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