Html2Markdown 7.0.0.49-beta
See the version list below for details.
dotnet add package Html2Markdown --version 7.0.0.49-beta
NuGet\Install-Package Html2Markdown -Version 7.0.0.49-beta
<PackageReference Include="Html2Markdown" Version="7.0.0.49-beta" />
<PackageVersion Include="Html2Markdown" Version="7.0.0.49-beta" />
<PackageReference Include="Html2Markdown" />
paket add Html2Markdown --version 7.0.0.49-beta
#r "nuget: Html2Markdown, 7.0.0.49-beta"
#:package Html2Markdown@7.0.0.49-beta
#addin nuget:?package=Html2Markdown&version=7.0.0.49-beta&prerelease
#tool nuget:?package=Html2Markdown&version=7.0.0.49-beta&prerelease
HTML2Markdown
Converts HTML to Markdown.
Build Status
| Branch | Status | 
|---|---|
master | 
|
develop | 
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
    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
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 | 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. 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. | 
- 
                                                    
net8.0
- HtmlAgilityPack (>= 1.11.64)
 - JetBrains.Annotations (>= 2024.2.0)
 
 
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.0.7.115-beta | 169 | 9/12/2025 | 
| 7.0.7.114-beta | 103 | 9/12/2025 | 
| 7.0.7.113-beta | 133 | 9/6/2025 | 
| 7.0.7.112-beta | 134 | 9/6/2025 | 
| 7.0.7.111-beta | 299 | 8/25/2025 | 
| 7.0.7.17 | 8,000 | 8/20/2025 | 
| 7.0.6.15 | 299 | 8/20/2025 | 
| 7.0.5.110-beta | 157 | 8/20/2025 | 
| 7.0.5.109-beta | 159 | 8/20/2025 | 
| 7.0.5.108-beta | 141 | 8/20/2025 | 
| 7.0.5.107-beta | 161 | 8/20/2025 | 
| 7.0.5.106-beta | 152 | 8/20/2025 | 
| 7.0.5.105-beta | 158 | 8/20/2025 | 
| 7.0.5.104-beta | 144 | 8/20/2025 | 
| 7.0.5.103-beta | 161 | 8/20/2025 | 
| 7.0.5.102-beta | 183 | 7/18/2025 | 
| 7.0.5.101-beta | 534 | 6/17/2025 | 
| 7.0.5.100-beta | 197 | 6/17/2025 | 
| 7.0.5.98-beta | 197 | 5/28/2025 | 
| 7.0.5.97-beta | 193 | 5/28/2025 | 
| 7.0.5.14 | 10,636 | 5/28/2025 | 
| 7.0.4.13 | 309 | 5/28/2025 | 
| 7.0.3.96-beta | 188 | 5/28/2025 | 
| 7.0.3.11 | 13,960 | 3/18/2025 | 
| 7.0.2.87-beta | 592 | 2/28/2025 | 
| 7.0.2.86-beta | 146 | 2/28/2025 | 
| 7.0.2.85-beta | 147 | 2/28/2025 | 
| 7.0.2.84-beta | 155 | 2/28/2025 | 
| 7.0.2.83-beta | 196 | 2/11/2025 | 
| 7.0.2.82-beta | 133 | 2/11/2025 | 
| 7.0.2.81-beta | 161 | 2/11/2025 | 
| 7.0.2.80-beta | 162 | 2/11/2025 | 
| 7.0.2.79-beta | 157 | 1/18/2025 | 
| 7.0.2.78-beta | 142 | 1/18/2025 | 
| 7.0.2.77-beta | 150 | 1/18/2025 | 
| 7.0.2.76-beta | 155 | 1/6/2025 | 
| 7.0.2.75-beta | 160 | 1/6/2025 | 
| 7.0.2.10 | 21,067 | 1/1/2025 | 
| 7.0.1.74-beta | 156 | 1/1/2025 | 
| 7.0.1.73-beta | 164 | 1/1/2025 | 
| 7.0.1.72-beta | 166 | 1/1/2025 | 
| 7.0.1.71-beta | 165 | 1/1/2025 | 
| 7.0.1.70-beta | 172 | 1/1/2025 | 
| 7.0.1.69-beta | 151 | 12/19/2024 | 
| 7.0.1.68-beta | 169 | 12/18/2024 | 
| 7.0.1.67-beta | 146 | 12/18/2024 | 
| 7.0.1.66-beta | 152 | 12/16/2024 | 
| 7.0.1.65-beta | 670 | 11/27/2024 | 
| 7.0.1.64-beta | 143 | 11/27/2024 | 
| 7.0.1.63-beta | 235 | 11/14/2024 | 
| 7.0.1.62-beta | 146 | 11/14/2024 | 
| 7.0.1.61-beta | 224 | 10/29/2024 | 
| 7.0.1.60-beta | 144 | 10/29/2024 | 
| 7.0.1.59-beta | 152 | 10/29/2024 | 
| 7.0.1.58-beta | 156 | 10/29/2024 | 
| 7.0.1.57-beta | 153 | 10/29/2024 | 
| 7.0.1.56-beta | 148 | 10/29/2024 | 
| 7.0.1.55-beta | 720 | 10/4/2024 | 
| 7.0.1.54-beta | 153 | 10/4/2024 | 
| 7.0.1.9 | 35,309 | 9/6/2024 | 
| 7.0.0.53-beta | 148 | 9/6/2024 | 
| 7.0.0.52-beta | 154 | 9/6/2024 | 
| 7.0.0.51-beta | 153 | 9/6/2024 | 
| 7.0.0.50-beta | 169 | 8/27/2024 | 
| 7.0.0.49-beta | 192 | 8/23/2024 | 
| 7.0.0.48-beta | 191 | 8/23/2024 | 
| 7.0.0.47-beta | 164 | 8/23/2024 | 
| 7.0.0.46-beta | 186 | 8/23/2024 | 
| 7.0.0.8 | 2,571 | 8/15/2024 | 
| 6.2.5.45-beta | 165 | 8/15/2024 | 
| 6.2.5.44-beta | 164 | 8/15/2024 | 
| 6.2.5.43-beta | 176 | 8/12/2024 | 
| 6.2.5.7 | 2,800 | 8/7/2024 | 
| 6.2.4.42-beta | 145 | 8/7/2024 | 
| 6.2.4.6 | 814 | 8/2/2024 | 
| 6.2.3.41-beta | 146 | 8/2/2024 | 
| 6.2.3.6 | 309 | 8/2/2024 | 
| 6.2.2.5 | 216 | 8/2/2024 | 
| 6.2.1.40-beta | 127 | 8/2/2024 | 
| 6.2.1.39-beta | 121 | 8/2/2024 | 
| 6.2.1.38-beta | 131 | 8/2/2024 | 
| 6.2.1.37-beta | 109 | 8/2/2024 | 
| 6.2.1.4 | 15,896 | 5/7/2024 | 
| 6.2.0.3 | 23,480 | 12/21/2023 | 
| 6.1.0.2 | 1,694 | 12/11/2023 | 
| 6.0.0.1 | 4,719 | 12/7/2023 | 
| 5.1.0.703 | 291,481 | 9/26/2022 | 
| 5.0.2.561 | 86,725 | 2/9/2022 | 
| 5.0.1.524 | 16,102 | 12/31/2021 | 
| 5.0.0.468 | 12,389 | 11/18/2021 | 
| 4.0.0.427 | 83,684 | 1/20/2021 | 
| 3.4.0.414 | 19,975 | 10/19/2020 | 
| 3.3.1.407 | 263,446 | 2/23/2020 | 
| 3.3.0.402 | 913 | 2/17/2020 | 
| 3.2.3.397 | 820 | 2/16/2020 | 
| 3.2.3.392 | 3,559 | 12/11/2019 | 
| 3.2.1.341 | 122,591 | 1/26/2018 | 
| 3.2.0.330 | 1,775 | 1/24/2018 | 
| 3.1.1.325 | 3,026 | 12/7/2017 | 
| 3.1.0.265 | 9,968 | 9/30/2017 | 
| 3.0.1.239 | 1,725 | 9/17/2017 | 
| 3.0.0.223 | 2,356 | 6/25/2017 | 
| 2.1.3.17558 | 14,336 | 4/30/2017 | 
| 2.1.2.37936 | 41,794 | 4/22/2016 | 
| 2.1.1.21959 | 1,630 | 4/13/2016 | 
| 2.1.1.20600 | 2,023 | 4/22/2016 | 
| 2.0.15.17168 | 2,310 | 3/4/2016 | 
| 2.0.14.12870 | 1,641 | 3/1/2016 | 
| 2.0.13.18679 | 1,691 | 2/18/2016 | 
| 2.0.12.17608 | 2,513 | 1/14/2016 | 
| 2.0.10.25385 | 1,991 | 12/22/2015 | 
| 2.0.9.35508 | 1,796 | 12/7/2015 | 
| 2.0.8.21974 | 1,754 | 12/7/2015 | 
| 2.0.7.12842 | 1,778 | 12/6/2015 | 
| 2.0.6.11496 | 1,958 | 12/4/2015 | 
| 2.0.5.12691 | 2,025 | 12/3/2015 | 
| 2.0.4.28432 | 1,799 | 12/1/2015 | 
| 2.0.3.6076 | 1,744 | 11/26/2015 | 
| 2.0.2.40469 | 1,774 | 11/22/2015 | 
| 2.0.1.40780 | 1,705 | 11/16/2015 | 
| 2.0.0.36417 | 1,704 | 11/16/2015 | 
| 1.0.7.39342 | 1,721 | 11/14/2015 | 
| 1.0.7.9444 | 1,704 | 11/14/2015 | 
| 1.0.6.33679 | 1,700 | 11/11/2015 | 
| 1.0.5.35465 | 1,773 | 11/10/2015 | 
| 1.0.4.38413 | 1,676 | 11/6/2015 | 
| 1.0.3.11422 | 1,808 | 10/13/2015 | 
| 1.0.2.29508 | 1,961 | 10/10/2015 | 
| 1.0.1.10006 | 1,898 | 10/10/2015 | 
| 1.0.0.33767 | 3,613 | 10/13/2014 | 
| 0.0.2.15780 | 1,925 | 10/13/2014 | 
| 0.0.1.35197 | 1,915 | 1/29/2014 | 
| 0.0.1.11272 | 2,324 | 7/4/2013 |