VOOZH about

URL: https://www.nuget.org/packages/OfficeIMO.Markdown/

⇱ NuGet Gallery | OfficeIMO.Markdown 0.6.33




👁 Image
OfficeIMO.Markdown 0.6.33

Prefix Reserved
dotnet add package OfficeIMO.Markdown --version 0.6.33
 
 
NuGet\Install-Package OfficeIMO.Markdown -Version 0.6.33
 
 
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="OfficeIMO.Markdown" Version="0.6.33" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OfficeIMO.Markdown" Version="0.6.33" />
 
Directory.Packages.props
<PackageReference Include="OfficeIMO.Markdown" />
 
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 OfficeIMO.Markdown --version 0.6.33
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: OfficeIMO.Markdown, 0.6.33"
 
 
#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 OfficeIMO.Markdown@0.6.33
 
 
#: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=OfficeIMO.Markdown&version=0.6.33
 
Install as a Cake Addin
#tool nuget:?package=OfficeIMO.Markdown&version=0.6.33
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

OfficeIMO.Markdown - Markdown builder, reader, and HTML renderer

👁 nuget version
👁 nuget downloads

OfficeIMO.Markdown is the core Markdown package in the OfficeIMO family. It builds Markdown, parses Markdown into a typed document model, projects native AST snapshots for hosts, and renders HTML without external runtime dependencies.

If OfficeIMO saves you time, please consider supporting the work through GitHub Sponsors or PayPal.

Install

dotnet add package OfficeIMO.Markdown

Quick start

using OfficeIMO.Markdown;

var document = MarkdownDoc.Create()
 .FrontMatter(new { title = "OfficeIMO.Markdown", tags = new[] { "docs", "reporting" } })
 .H1("OfficeIMO.Markdown")
 .P("Typed Markdown builder, reader, and HTML renderer for .NET.")
 .Ul(list => list
 .Item("Build Markdown with a fluent API")
 .Item("Parse Markdown into typed blocks and inlines")
 .Item("Render HTML fragments or full documents"))
 .Code("powershell", "dotnet add package OfficeIMO.Markdown");

string markdown = document.ToMarkdown();
string htmlFragment = document.ToHtmlFragment();
string htmlDocument = document.ToHtmlDocument();

What it does

  • Builds Markdown documents with headings, paragraphs, lists, task lists, tables, code blocks, callouts, details, front matter, footnotes, table-of-contents helpers, and semantic fenced blocks.
  • Parses Markdown into a typed MarkdownDoc object model with headings, blocks, inlines, anchors, source spans, front matter, and transform diagnostics.
  • Renders HTML fragments or full HTML documents with configurable profiles, CSS delivery, Prism options, Mermaid/chart/math shell assets, and safe defaults.
  • Provides native AST projection for editor, transcript, chat, and document hosts that need stable block ids and DTO-style snapshots.
  • Supports AOT-sensitive code paths through typed selectors and explicit overloads while leaving reflection helpers available for convenience scenarios.

Common tasks

Tables from typed objects

var results = new[] {
 new { Name = "Alice", Role = "Dev", Score = 98.5 },
 new { Name = "Bob", Role = "Ops", Score = 91.0 }
};

var document = MarkdownDoc.Create()
 .H2("Team")
 .Table(table => table.FromSequence(results,
 ("Name", item => item.Name),
 ("Role", item => item.Role),
 ("Score", item => item.Score)));

Parse and inspect headings

var parsed = MarkdownReader.Parse(File.ReadAllText("README.md"));

foreach (var heading in parsed.GetHeadingInfos()) {
 Console.WriteLine($"{heading.Level}: {heading.Text} -> {heading.Anchor}");
}

Native AST snapshot

MarkdownNativeDocument native = MarkdownNativeDocument.Parse("""
# Investigation

See **CPU** in [dashboard](https://example.com).
""");

var snapshot = native.ToSnapshot();

Front matter, task lists, callouts, details, and TOC

var document = MarkdownDoc.Create()
 .FrontMatter(new {
 title = "Deployment checklist",
 owner = "Platform",
 tags = new[] { "runbook", "deployment" }
 })
 .H1("Deployment checklist")
 .Toc(options => {
 options.Title = "Contents";
 options.MinLevel = 2;
 options.MaxLevel = 3;
 })
 .H2("Pre-flight")
 .Ul(list => list
 .ItemTask("Packages published", done: true)
 .ItemTask("Change approved")
 .ItemTask("Rollback plan attached"))
 .Callout("warning", "Freeze window", "Do not deploy outside the approved window.")
 .Details("Rollback commands", body => body
 .Code("powershell", "dotnet nuget locals all --clear"));

string markdown = document.ToMarkdown();

HTML fragments, full documents, and parts

var document = MarkdownDoc.Create()
 .H1("Status")
 .P(p => p.Text("Generated ").Bold("today").Text(" for the portal."))
 .TableAuto(table => table
 .Headers("Service", "Status", "Latency")
 .Row("API", "Green", "42")
 .Row("Jobs", "Yellow", "210"));

string fragment = document.ToHtmlFragment();
string fullPage = document.ToHtmlDocument();
HtmlRenderParts parts = document.ToHtmlParts();

Parse, inspect, and rewrite a document

var parsed = MarkdownReader.Parse(File.ReadAllText("README.md"),
 MarkdownReaderOptions.CreateOfficeIMOProfile());

if (!parsed.HasHeading("Install")) {
 parsed.H2("Install")
 .Code("powershell", "dotnet add package OfficeIMO.Markdown");
}

foreach (var heading in parsed.GetHeadingInfos()) {
 Console.WriteLine($"{heading.Level}: {heading.Text} -> #{heading.Anchor}");
}

File.WriteAllText("README.normalized.md", parsed.ToMarkdown());

Adjacent packages

Package Use it for
HTML to Markdown document conversion.
Markdown to PDF through OfficeIMO.Pdf.
WebView/browser-friendly shell rendering and incremental updates.
Word to/from Markdown conversion.
Markdown-inspired semantic authoring for OfficeIMO document outputs.

Boundaries

  • OfficeIMO.Markdown owns the Markdown model, parser, writer, and HTML renderer.
  • PDF output belongs in OfficeIMO.Markdown.Pdf.
  • HTML ingestion belongs in OfficeIMO.Markdown.Html.
  • Host shell behavior belongs in OfficeIMO.MarkdownRenderer and host-specific plug-ins.

Deeper docs

Targets and license

Product Versions Compatible and additional computed target framework versions.
.NET net5.0 net5.0 was computed.  net5.0-windows net5.0-windows was computed.  net6.0 net6.0 was computed.  net6.0-android net6.0-android was computed.  net6.0-ios net6.0-ios was computed.  net6.0-maccatalyst net6.0-maccatalyst was computed.  net6.0-macos net6.0-macos was computed.  net6.0-tvos net6.0-tvos was computed.  net6.0-windows net6.0-windows was computed.  net7.0 net7.0 was computed.  net7.0-android net7.0-android was computed.  net7.0-ios net7.0-ios was computed.  net7.0-maccatalyst net7.0-maccatalyst was computed.  net7.0-macos net7.0-macos was computed.  net7.0-tvos net7.0-tvos was computed.  net7.0-windows net7.0-windows was computed.  net8.0 net8.0 is compatible.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 was computed.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 is compatible.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed. 
.NET Core netcoreapp2.0 netcoreapp2.0 was computed.  netcoreapp2.1 netcoreapp2.1 was computed.  netcoreapp2.2 netcoreapp2.2 was computed.  netcoreapp3.0 netcoreapp3.0 was computed.  netcoreapp3.1 netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 netstandard2.0 is compatible.  netstandard2.1 netstandard2.1 was computed. 
.NET Framework net461 net461 was computed.  net462 net462 was computed.  net463 net463 was computed.  net47 net47 was computed.  net471 net471 was computed.  net472 net472 is compatible.  net48 net48 was computed.  net481 net481 was computed. 
MonoAndroid monoandroid monoandroid was computed. 
MonoMac monomac monomac was computed. 
MonoTouch monotouch monotouch was computed. 
Tizen tizen40 tizen40 was computed.  tizen60 tizen60 was computed. 
Xamarin.iOS xamarinios xamarinios was computed. 
Xamarin.Mac xamarinmac xamarinmac was computed. 
Xamarin.TVOS xamarintvos xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.7.2

    • No dependencies.
  • .NETStandard 2.0

    • No dependencies.
  • net10.0

    • No dependencies.
  • net8.0

    • No dependencies.

NuGet packages (7)

Showing the top 5 NuGet packages that depend on OfficeIMO.Markdown:

Package Downloads
OfficeIMO.Markdown.Html

HTML converter for OfficeIMO.Markdown - Convert HTML fragments or documents into OfficeIMO.Markdown documents and Markdown text.

OfficeIMO.Word.Markdown

Markdown converter for OfficeIMO.Word - Convert Word documents to/from Markdown using OfficeIMO.Markdown

OfficeIMO.Reader

Unified, read-only document extraction facade for OfficeIMO (Word/Excel/PowerPoint/Markdown/PDF) intended for AI ingestion.

OfficeIMO.MarkdownRenderer

WebView-friendly Markdown rendering helpers (shell + incremental updates) built on OfficeIMO.Markdown.

HtmlForgeX.Markdown

Advanced Markdown integration for HtmlForgeX powered by OfficeIMO.Markdown. Maps Markdown blocks to HtmlForgeX elements and registers libraries via HtmlForgeX.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on OfficeIMO.Markdown:

Repository Stars
EvotecIT/PSWriteOffice
PowerShell Module to create and edit Microsoft Word, Microsoft Excel, and Microsoft PowerPoint documents without having Microsoft Office installed.
Version Downloads Last Updated
0.6.33 348 6/16/2026
0.6.32 468 6/16/2026
0.6.31 652 6/15/2026
0.6.30 790 6/13/2026
0.6.29 976 6/12/2026
0.6.28 722 6/9/2026
0.6.27 974 6/5/2026
0.6.26 951 5/27/2026
0.6.25 652 5/26/2026
0.6.24 607 5/26/2026
0.6.23 1,030 5/23/2026
0.6.22 639 5/22/2026
0.6.21 594 5/21/2026
0.6.20 593 5/21/2026
0.6.19 675 5/20/2026
0.6.18 594 5/19/2026
0.6.17 577 5/18/2026
0.6.16 840 5/16/2026
0.6.15 609 5/14/2026
0.6.14 792 5/14/2026
Loading failed

0.6.0: adds semantic fenced-block AST support, fenced block extension APIs, improved quoted/container fence handling, and HTML parts/asset workflows aligned for downstream HTML-to-Markdown and host integrations.