HtmlToMarkdownConverter 1.0.8

dotnet add package HtmlToMarkdownConverter --version 1.0.8                
NuGet\Install-Package HtmlToMarkdownConverter -Version 1.0.8                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="HtmlToMarkdownConverter" Version="1.0.8" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add HtmlToMarkdownConverter --version 1.0.8                
#r "nuget: HtmlToMarkdownConverter, 1.0.8"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install HtmlToMarkdownConverter as a Cake Addin
#addin nuget:?package=HtmlToMarkdownConverter&version=1.0.8

// Install HtmlToMarkdownConverter as a Cake Tool
#tool nuget:?package=HtmlToMarkdownConverter&version=1.0.8                

HTML to Markdown Converter

HTML to Markdown Converter is a powerful tool designed to seamlessly convert HTML strings into Markdown format. This library has no external dependencies, making it lightweight and easy to integrate into your projects. This tool simplifies the process of transforming HTML content into clean, readable Markdown, making it perfect for developers, writers, and content creators.

Features

  • Easy Conversion: Quickly convert HTML strings to Markdown with minimal effort.
  • Accurate Formatting: Ensures that the converted Markdown retains the structure and style of the original HTML.
  • Open Source: Available for free and open for contributions.

Installation

To install the tool, use the following command:

Install-Package HtmlToMarkdownConverter

Usage

ConversionService Class

The ConversionService class provides methods to convert HTML to Markdown and to retrieve error logs.

ConvertHtmlToMarkdown Method

This method converts HTML content to Markdown.

using HtmlToMarkdownService;

var conversionService = new ConversionService();
string htmlContent = "<p>Hello, World!</p>";
string markdownContent = conversionService.ConvertHtmlToMarkdown(htmlContent);

Console.WriteLine(markdownContent);

GetErrorLogs Method

This method returns a list of errors encountered during the conversion process.

using HtmlToMarkdownService;

var conversionService = new ConversionService();
List<string> errorLogs = conversionService.GetErrorLogs();

foreach (var error in errorLogs)
{
    Console.WriteLine(error);
}

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

Contact

For any questions or feedback, please contact info@bluecomment.com.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.8 88 10/20/2024
1.0.7 62 10/3/2024
1.0.6 66 9/21/2024
1.0.5 68 9/21/2024
1.0.4 66 9/21/2024
1.0.3 65 9/20/2024
1.0.2 67 9/20/2024
1.0.1 69 9/18/2024
1.0.0 70 9/18/2024

Minor bug fixes and code enhancements