OfficeIMO.Reader.Markdown 3.6.2

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

OfficeIMO.Reader.Markdown

Markdown support for OfficeIMO.Reader.Core, backed by the typed OfficeIMO.Markdown parser.

using OfficeIMO.Reader;
using OfficeIMO.Reader.Markdown;

OfficeDocumentReader reader = new OfficeDocumentReaderBuilder()
    .AddMarkdownHandler()
    .Build();

OfficeDocumentReadResult result = reader.ReadDocument("README.md");
foreach (ReaderChunk chunk in result.Chunks) {
    Console.WriteLine($"{chunk.Id} [{chunk.Location.HeadingPath}] lines {chunk.Location.StartLine}-{chunk.Location.EndLine}");
}

The adapter preserves source spans and heading paths and projects Markdown tables and supported visual fences into Reader's structured models. OfficeIMO.Reader.All registers this handler.

Registration

Item Value
Handler id officeimo.reader.markdown
Extensions .md, .markdown, .mdown, .mkd, .mdx
Reader kind ReaderInputKind.Markdown
Default input limit 64 MiB when ReaderOptions.MaxInputBytes is not set
Output Deterministic

AddMarkdownHandler(options, replaceExisting) snapshots the options at registration; later changes to the same ReaderMarkdownOptions instance do not affect the built reader.

Options

ReaderMarkdownOptions Default Effect
ChunkByHeadings true Starts a new chunk at every heading. When false, blocks are packed into chunks by size only.
ParserOptions null (default MarkdownLoadOptions, the OfficeIMO profile) Parser profile and switches. Use MarkdownLoadOptions.CreateCommonMarkProfile(), CreateGitHubFlavoredMarkdownProfile() or CreatePortableProfile() for standards-only parsing. The value is cloned at registration.

Shared ReaderOptions also apply:

ReaderOptions Default Effect on Markdown
MaxChars 8000 Target chunk size. Values below 256 are treated as 256.
MaxTableRows 200 Rows kept per projected table.
MaxInputBytes null (handler default) Input size limit enforced before parsing.

What each chunk contains

  • Id in the form markdown:<file name>:<index>, for example markdown:README.md:0002.
  • Text and Markdown with the normalized Markdown of the blocks in the chunk.
  • Location.StartLine and EndLine from the parser's source spans, HeadingPath such as Guide > Install, HeadingSlug, SourceBlockKind (heading, paragraph, table, code, ...) and BlockAnchor.
  • Tables for GFM tables and ix-dataview JSON fences (columns + rows, or records), with column profiles.
  • Visuals for fenced mermaid, chart/ix-chart and network/ix-network/visnetwork blocks. Visual content is carried as source text with a payload hash; nothing is rendered or executed.

Limits and warnings

  • Blocks are never cut in the middle. A single block larger than MaxChars becomes its own chunk with the warning A single markdown block exceeded MaxChars and was preserved as one chunk.
  • Text is decoded as UTF-8, honoring a byte-order mark when present.
  • Links and images are not fetched.

Example output

For this input:

# Guide

Intro paragraph.

## Install

| Package | Command |
|---|---|
| Reader | `dotnet add package OfficeIMO.Reader.All` |

the default options produce two chunks:

Id HeadingPath Lines Content
markdown:guide.md:0000 Guide 1-3 Heading and intro paragraph
markdown:guide.md:0001 Guide > Install 5-9 Heading and table; Tables holds one table with columns Package and Command

Dependency footprint

  • External: None.
  • OfficeIMO: OfficeIMO.Reader.Core and OfficeIMO.Markdown.
Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

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

Package Downloads
OfficeIMO.Reader.All

Composition-only preset for registering OfficeIMO.Reader's local format adapters.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.6.2 260 11/18/2026
3.6.1 232 11/10/2026
3.6.0 229 11/6/2026
3.5.3 160 10/31/2026
3.5.2 153 10/24/2026
3.5.1 201 10/16/2026
3.4.5 653 10/10/2026
3.4.4 321 9/27/2026
3.4.3 327 9/12/2026
3.4.2 233 9/9/2026
3.4.1 245 9/7/2026
3.4.0 194 9/6/2026
3.3.0 199 9/2/2026
3.2.7 183 8/29/2026
3.2.6 274 8/22/2026
3.2.5 279 8/21/2026
3.2.4 264 8/19/2026
3.2.3 177 8/17/2026
3.2.2 407 8/13/2026
3.2.1 311 8/11/2026
Loading failed