HtmlToMarkdownConverter 1.0.8
dotnet add package HtmlToMarkdownConverter --version 1.0.8
NuGet\Install-Package HtmlToMarkdownConverter -Version 1.0.8
<PackageReference Include="HtmlToMarkdownConverter" Version="1.0.8" />
paket add HtmlToMarkdownConverter --version 1.0.8
#r "nuget: HtmlToMarkdownConverter, 1.0.8"
// 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 | Versions 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. |
-
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.
Minor bug fixes and code enhancements