Html2Markdown 7.1.2.20

dotnet add package Html2Markdown --version 7.1.2.20
                    
NuGet\Install-Package Html2Markdown -Version 7.1.2.20
                    
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="Html2Markdown" Version="7.1.2.20" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Html2Markdown" Version="7.1.2.20" />
                    
Directory.Packages.props
<PackageReference Include="Html2Markdown" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Html2Markdown --version 7.1.2.20
                    
#r "nuget: Html2Markdown, 7.1.2.20"
                    
#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.
#:package Html2Markdown@7.1.2.20
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Html2Markdown&version=7.1.2.20
                    
Install as a Cake Addin
#tool nuget:?package=Html2Markdown&version=7.1.2.20
                    
Install as a Cake Tool

HTML2Markdown

Converts HTML to Markdown.


Html2Markdown

Build Status

Branch Status
master master
develop develop

Coverage Quality Gate Status

Support

This project will currently convert the following HTML tags:-

  • <a>
  • <strong>
  • <b>
  • <em>
  • <i>
  • <br>
  • <code>
  • <h1>
  • <h2>
  • <h3>
  • <h4>
  • <h5>
  • <h6>
  • <blockquote>
  • <img>
  • <hr>
  • <p>
  • <pre>
  • <ul>
  • <ol>

Installing via NuGet

NuGet version

    Install-Package Html2Markdown

Usage

Strings

var html = "Something to <strong>convert</strong>";
var converter = new Converter();
var markdown = converter.Convert(html);

Files

var path = "file.html";
var converter = new Converter();
var markdown = converter.ConvertFile(path);

Documentation

Library Documentation

Customise

Create new IScheme implementation

Create your own implementation of IScheme and construct Converter with that.

var html = "Something to <strong>convert</strong>";
var converter = new Converter(customConversionScheme);
var markdown = converter.Convert(html);

Try it

This library is showcased at http://html2markdown.bayn.es.

Contributing

For those interested in contributing then please read the guidelines

License

This project is licensed under Apache License 2.0.

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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (9)

Showing the top 5 NuGet packages that depend on Html2Markdown:

Package Downloads
Terradue.Stars

Stars is a set of services for working with Spatio Temporal Catalog such as STAC but not only

Terradue.Data.Stars

Collection of data Plugins for Terradue.Stars

EPS.Extensions.YamlMarkdown

If you've ever worked on an app and you needed quick access to something that can read a Markdown file with YAML front-matter, then this is your library. Using YamlDotNet and Markdig, we take your YAML object, serialize it for you, and give you Markdown and parsed HTML for your page data.

L.52AbpPro.Blogging.Application

Package Description

SunamoMarkdown

Wrapper around Html2Markdown library

GitHub repositories (2)

Showing the top 2 popular GitHub repositories that depend on Html2Markdown:

Repository Stars
Meowv/Blog
🤣本项目有不同开发版本,最新版底层基于 abp vNext 搭建和免费开源跨平台框架 .NET5 进行开发,使用 MongoDB 存储数据,Redis 缓存数据。项目采用前后端分离的模式进行开发,API 遵循 RESTful 接口规范,页面使用 Blazor 进行开发,可作为 .NET Core 入门项目进行学习。If you liked `Blog` project or if it helped you, please give a star ⭐️ for this repository. 👍👍👍
whistyun/Markdown.Avalonia
render markdown with Avalonia UI
Version Downloads Last Updated
7.1.2.20 383 12/26/2025
7.1.1.149-beta 118 12/26/2025
7.1.1.148-beta 123 12/26/2025
7.1.1.147-beta 119 12/26/2025
7.1.1.146-beta 118 12/26/2025
7.1.1.145-beta 117 12/26/2025
7.1.1.144-beta 129 12/26/2025
7.1.1.139-beta 139 12/6/2025
7.1.1.138-beta 118 12/6/2025
7.1.1.137-beta 122 12/6/2025
7.1.1.136-beta 339 11/21/2025
7.1.1.135-beta 326 11/21/2025
7.1.1.134-beta 287 11/11/2025
7.1.1.133-beta 291 11/11/2025
7.1.1.19 3,974 11/10/2025
7.1.0.132-beta 236 11/10/2025
7.1.0.131-beta 240 11/10/2025
7.1.0.130-beta 235 11/10/2025
7.1.0.129-beta 238 11/10/2025
7.1.0.128-beta 233 11/10/2025
7.1.0.127-beta 241 11/10/2025
7.1.0.18 325 11/9/2025
7.0.7.124-beta 207 11/9/2025
7.0.7.123-beta 143 11/7/2025
7.0.7.122-beta 135 11/7/2025
7.0.7.121-beta 129 11/7/2025
7.0.7.120-beta 138 11/7/2025
7.0.7.119-beta 140 11/7/2025
7.0.7.118-beta 136 11/7/2025
7.0.7.117-beta 138 11/7/2025
7.0.7.116-beta 137 11/7/2025
7.0.7.115-beta 241 9/12/2025
7.0.7.114-beta 124 9/12/2025
7.0.7.113-beta 150 9/6/2025
7.0.7.112-beta 152 9/6/2025
7.0.7.111-beta 319 8/25/2025
7.0.7.17 13,375 8/20/2025
7.0.6.15 349 8/20/2025
7.0.5.110-beta 175 8/20/2025
7.0.5.109-beta 174 8/20/2025
7.0.5.108-beta 152 8/20/2025
7.0.5.107-beta 179 8/20/2025
7.0.5.106-beta 172 8/20/2025
7.0.5.105-beta 173 8/20/2025
7.0.5.104-beta 158 8/20/2025
7.0.5.103-beta 180 8/20/2025
7.0.5.102-beta 203 7/18/2025
7.0.5.101-beta 571 6/17/2025
7.0.5.100-beta 212 6/17/2025
7.0.5.98-beta 217 5/28/2025
7.0.5.97-beta 207 5/28/2025
7.0.5.14 12,918 5/28/2025
7.0.4.13 344 5/28/2025
7.0.3.96-beta 202 5/28/2025
7.0.3.11 16,049 3/18/2025
7.0.2.87-beta 617 2/28/2025
7.0.2.86-beta 154 2/28/2025
7.0.2.85-beta 162 2/28/2025
7.0.2.84-beta 174 2/28/2025
7.0.2.83-beta 211 2/11/2025
7.0.2.82-beta 152 2/11/2025
7.0.2.81-beta 178 2/11/2025
7.0.2.80-beta 180 2/11/2025
7.0.2.79-beta 169 1/18/2025
7.0.2.78-beta 152 1/18/2025
7.0.2.77-beta 162 1/18/2025
7.0.2.76-beta 172 1/6/2025
7.0.2.75-beta 174 1/6/2025
7.0.2.10 23,404 1/1/2025
7.0.1.74-beta 172 1/1/2025
7.0.1.73-beta 183 1/1/2025
7.0.1.72-beta 183 1/1/2025
7.0.1.71-beta 187 1/1/2025
7.0.1.70-beta 187 1/1/2025
7.0.1.69-beta 166 12/19/2024
7.0.1.68-beta 182 12/18/2024
7.0.1.67-beta 167 12/18/2024
7.0.1.66-beta 169 12/16/2024
7.0.1.65-beta 691 11/27/2024
7.0.1.64-beta 163 11/27/2024
7.0.1.63-beta 254 11/14/2024
7.0.1.62-beta 163 11/14/2024
7.0.1.61-beta 242 10/29/2024
7.0.1.60-beta 162 10/29/2024
7.0.1.59-beta 172 10/29/2024
7.0.1.58-beta 169 10/29/2024
7.0.1.57-beta 171 10/29/2024
7.0.1.56-beta 166 10/29/2024
7.0.1.55-beta 820 10/4/2024
7.0.1.54-beta 172 10/4/2024
7.0.1.9 39,347 9/6/2024
7.0.0.53-beta 166 9/6/2024
7.0.0.52-beta 172 9/6/2024
7.0.0.51-beta 173 9/6/2024
7.0.0.50-beta 191 8/27/2024
7.0.0.49-beta 211 8/23/2024
7.0.0.48-beta 206 8/23/2024
7.0.0.47-beta 182 8/23/2024
7.0.0.46-beta 202 8/23/2024
7.0.0.8 2,683 8/15/2024
6.2.5.45-beta 181 8/15/2024
6.2.5.44-beta 176 8/15/2024
6.2.5.43-beta 190 8/12/2024
6.2.5.7 3,760 8/7/2024
6.2.4.42-beta 164 8/7/2024
6.2.4.6 886 8/2/2024
6.2.3.41-beta 168 8/2/2024
6.2.3.6 345 8/2/2024
6.2.2.5 252 8/2/2024
6.2.1.40-beta 148 8/2/2024
6.2.1.39-beta 138 8/2/2024
6.2.1.38-beta 143 8/2/2024
6.2.1.37-beta 130 8/2/2024
6.2.1.4 16,732 5/7/2024
6.2.0.3 23,849 12/21/2023
6.1.0.2 3,498 12/11/2023
6.0.0.1 5,105 12/7/2023
5.1.0.703 314,452 9/26/2022
5.0.2.561 87,740 2/9/2022
5.0.1.524 16,329 12/31/2021
5.0.0.468 12,456 11/18/2021
4.0.0.427 85,827 1/20/2021
3.4.0.414 20,033 10/19/2020
3.3.1.407 264,401 2/23/2020
3.3.0.402 950 2/17/2020
3.2.3.397 859 2/16/2020
3.2.3.392 3,604 12/11/2019
3.2.1.341 123,107 1/26/2018
3.2.0.330 1,870 1/24/2018
3.1.1.325 3,121 12/7/2017
3.1.0.265 10,075 9/30/2017
3.0.1.239 1,788 9/17/2017
3.0.0.223 2,424 6/25/2017
2.1.3.17558 14,648 4/30/2017
2.1.2.37936 42,225 4/22/2016
2.1.1.21959 1,702 4/13/2016
2.1.1.20600 2,090 4/22/2016
2.0.15.17168 2,375 3/4/2016
2.0.14.12870 1,706 3/1/2016
2.0.13.18679 1,759 2/18/2016
2.0.12.17608 2,608 1/14/2016
2.0.10.25385 2,083 12/22/2015
2.0.9.35508 1,859 12/7/2015
2.0.8.21974 1,829 12/7/2015
2.0.7.12842 1,840 12/6/2015
2.0.6.11496 2,033 12/4/2015
2.0.5.12691 2,089 12/3/2015
2.0.4.28432 1,865 12/1/2015
2.0.3.6076 1,816 11/26/2015
2.0.2.40469 1,844 11/22/2015
2.0.1.40780 1,777 11/16/2015
2.0.0.36417 1,768 11/16/2015
1.0.7.39342 1,786 11/14/2015
1.0.7.9444 1,772 11/14/2015
1.0.6.33679 1,769 11/11/2015
1.0.5.35465 1,840 11/10/2015
1.0.4.38413 1,745 11/6/2015
1.0.3.11422 1,876 10/13/2015
1.0.2.29508 2,032 10/10/2015
1.0.1.10006 1,966 10/10/2015
1.0.0.33767 3,679 10/13/2014
0.0.2.15780 1,989 10/13/2014
0.0.1.35197 1,979 1/29/2014
0.0.1.11272 2,412 7/4/2013