OfficeIMO.Markdown.Html
0.1.31
Prefix Reserved
See the version list below for details.
dotnet add package OfficeIMO.Markdown.Html --version 0.1.31
NuGet\Install-Package OfficeIMO.Markdown.Html -Version 0.1.31
<PackageReference Include="OfficeIMO.Markdown.Html" Version="0.1.31" />
<PackageVersion Include="OfficeIMO.Markdown.Html" Version="0.1.31" />
<PackageReference Include="OfficeIMO.Markdown.Html" />
paket add OfficeIMO.Markdown.Html --version 0.1.31
#r "nuget: OfficeIMO.Markdown.Html, 0.1.31"
#:package OfficeIMO.Markdown.Html@0.1.31
#addin nuget:?package=OfficeIMO.Markdown.Html&version=0.1.31
#tool nuget:?package=OfficeIMO.Markdown.Html&version=0.1.31
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.0)
- OfficeIMO.Markdown (>= 0.6.31)
-
.NETStandard 2.0
- OfficeIMO.Html (>= 0.1.0)
- OfficeIMO.Markdown (>= 0.6.31)
-
net10.0
- OfficeIMO.Html (>= 0.1.0)
- OfficeIMO.Markdown (>= 0.6.31)
-
net8.0
- OfficeIMO.Html (>= 0.1.0)
- OfficeIMO.Markdown (>= 0.6.31)
NuGet packages (7)
Showing the top 5 NuGet packages that depend on OfficeIMO.Markdown.Html:
| Package | Downloads |
|---|---|
|
HtmlTinkerX
HTML, CSS, and JavaScript parsing, extraction, auditing, formatting, and browser automation for .NET and PowerShell. |
|
|
OfficeIMO.Word.Markdown
Markdown converter for OfficeIMO.Word - Convert Word documents to/from Markdown using OfficeIMO.Markdown |
|
|
OfficeIMO.Reader.Html
HTML adapter for OfficeIMO.Reader using OfficeIMO.Html. |
|
|
OfficeIMO.MarkdownRenderer
WebView-friendly Markdown rendering helpers (shell + incremental updates) built on OfficeIMO.Markdown. |
|
|
OfficeIMO.MarkdownRenderer.IntelligenceX
IntelligenceX renderer plugin pack for OfficeIMO.MarkdownRenderer with transcript-oriented preset helpers and IX visual aliases. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.4.5 | 410 | 10/10/2026 |
| 3.4.4 | 3,155 | 9/27/2026 |
| 3.4.3 | 8,406 | 9/12/2026 |
| 3.4.2 | 531 | 9/9/2026 |
| 3.4.1 | 518 | 9/7/2026 |
| 3.4.0 | 467 | 9/6/2026 |
| 3.3.0 | 463 | 9/2/2026 |
| 3.2.7 | 454 | 8/29/2026 |
| 3.2.6 | 3,515 | 8/22/2026 |
| 3.2.5 | 580 | 8/21/2026 |
| 3.2.4 | 618 | 8/19/2026 |
| 3.2.3 | 484 | 8/17/2026 |
| 3.2.2 | 25,267 | 8/13/2026 |
| 3.2.1 | 641 | 8/11/2026 |
| 3.2.0 | 9,503 | 8/7/2026 |
| 3.1.1 | 412 | 8/7/2026 |
| 3.1.0 | 421 | 8/6/2026 |
| 3.0.3 | 955 | 7/27/2026 |
| 3.0.2 | 3,265 | 7/26/2026 |
| 0.1.31 | 814 | 6/15/2026 |