OfficeIMO.Markdown.Html
0.1.34
Prefix Reserved
dotnet add package OfficeIMO.Markdown.Html --version 0.1.34
NuGet\Install-Package OfficeIMO.Markdown.Html -Version 0.1.34
<PackageReference Include="OfficeIMO.Markdown.Html" Version="0.1.34" />
<PackageVersion Include="OfficeIMO.Markdown.Html" Version="0.1.34" />
<PackageReference Include="OfficeIMO.Markdown.Html" />
paket add OfficeIMO.Markdown.Html --version 0.1.34
#r "nuget: OfficeIMO.Markdown.Html, 0.1.34"
#:package OfficeIMO.Markdown.Html@0.1.34
#addin nuget:?package=OfficeIMO.Markdown.Html&version=0.1.34
#tool nuget:?package=OfficeIMO.Markdown.Html&version=0.1.34
OfficeIMO.Markdown.Html - HTML to Markdown conversion
OfficeIMO.Markdown.Html converts HTML fragments or full HTML documents into Markdown text and OfficeIMO.Markdown document models.
Install
dotnet add package OfficeIMO.Markdown.Html
Quick start
using OfficeIMO.Markdown;
using OfficeIMO.Markdown.Html;
string markdown = "<h1>Hello</h1><p>Body</p>".ToMarkdown();
MarkdownDoc document = "<h1>Hello</h1><p>Body</p>".LoadFromHtml();
Options
using OfficeIMO.Markdown.Html;
var options = new HtmlToMarkdownOptions {
BaseUri = new Uri("https://example.com/docs/"),
UseBodyContentsOnly = true,
PreserveUnsupportedBlocks = true,
PreserveUnsupportedInlineHtml = true
};
string markdown = "<p><a href=\"guide/start\">Docs</a></p>".ToMarkdown(options);
What it maps
- Headings, paragraphs, ordered and unordered lists, block quotes, code blocks, horizontal rules, tables, images, figures, details/summary, definition lists, and raw HTML fallback blocks.
- Emphasis, strong emphasis, strike-through, code spans, links, images, line breaks, and selected inline HTML wrappers.
- Relative links and image targets when a base URI is supplied.
- Shared
data-omd-*visual host elements back into semantic fenced blocks when host hints are registered. - Custom block and inline converters for host or plug-in packages.
Profiles
- Use the OfficeIMO profile when the downstream consumer is
OfficeIMO.MarkdownorOfficeIMO.MarkdownRenderer. - Use the portable profile when output should remain friendly to generic Markdown engines.
var options = HtmlToMarkdownOptions.CreatePortableProfile();
string portable = "<blockquote><p><strong>Example</strong></p></blockquote>".ToMarkdown(options);
Boundaries
- This package owns HTML ingestion into Markdown.
- It does not render Markdown to a host shell; that belongs in
OfficeIMO.MarkdownRenderer. - It does not export to PDF; that belongs in
OfficeIMO.Markdown.PdfandOfficeIMO.Pdf.
Targets and license
- Targets:
netstandard2.0,net8.0,net10.0. - License: MIT.
- Repository: EvotecIT/OfficeIMO
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. 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 is compatible. 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. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 is compatible. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.7.2
- OfficeIMO.Html (>= 0.1.3)
- OfficeIMO.Markdown (>= 0.6.34)
-
.NETStandard 2.0
- OfficeIMO.Html (>= 0.1.3)
- OfficeIMO.Markdown (>= 0.6.34)
-
net10.0
- OfficeIMO.Html (>= 0.1.3)
- OfficeIMO.Markdown (>= 0.6.34)
-
net8.0
- OfficeIMO.Html (>= 0.1.3)
- OfficeIMO.Markdown (>= 0.6.34)
NuGet packages (6)
Showing the top 5 NuGet packages that depend on OfficeIMO.Markdown.Html:
| Package | Downloads |
|---|---|
|
OfficeIMO.Word.Markdown
Markdown converter for OfficeIMO.Word - Convert Word documents to/from Markdown using OfficeIMO.Markdown |
|
|
HtmlTinkerX
Package Description |
|
|
OfficeIMO.MarkdownRenderer
WebView-friendly Markdown rendering helpers (shell + incremental updates) built on OfficeIMO.Markdown. |
|
|
OfficeIMO.Reader.Html
HTML adapter for OfficeIMO.Reader using OfficeIMO.Markdown.Html. |
|
|
OfficeIMO.Html.Pdf
Bidirectional HTML/PDF converter for OfficeIMO - Thin adapter over OfficeIMO.Markdown.Html, OfficeIMO.Word.Html, and the first-party OfficeIMO.Pdf logical/read/render engines. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.34 | 30 | 6/21/2026 |
| 0.1.33 | 479 | 6/16/2026 |
| 0.1.32 | 630 | 6/16/2026 |
| 0.1.31 | 618 | 6/15/2026 |
| 0.1.30 | 745 | 6/13/2026 |
| 0.1.29 | 779 | 6/12/2026 |
| 0.1.28 | 578 | 6/9/2026 |
| 0.1.27 | 765 | 6/5/2026 |
| 0.1.26 | 680 | 5/27/2026 |
| 0.1.25 | 545 | 5/26/2026 |
| 0.1.24 | 488 | 5/26/2026 |
| 0.1.23 | 571 | 5/23/2026 |
| 0.1.22 | 526 | 5/22/2026 |
| 0.1.21 | 491 | 5/21/2026 |
| 0.1.20 | 488 | 5/21/2026 |
| 0.1.19 | 482 | 5/20/2026 |
| 0.1.18 | 500 | 5/19/2026 |
| 0.1.17 | 490 | 5/18/2026 |
| 0.1.16 | 738 | 5/16/2026 |
| 0.1.15 | 457 | 5/14/2026 |