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
<PackageReference Include="OfficeIMO.Reader.Markdown" Version="3.6.2" />
<PackageVersion Include="OfficeIMO.Reader.Markdown" Version="3.6.2" />
<PackageReference Include="OfficeIMO.Reader.Markdown" />
paket add OfficeIMO.Reader.Markdown --version 3.6.2
#r "nuget: OfficeIMO.Reader.Markdown, 3.6.2"
#:package OfficeIMO.Reader.Markdown@3.6.2
#addin nuget:?package=OfficeIMO.Reader.Markdown&version=3.6.2
#tool nuget:?package=OfficeIMO.Reader.Markdown&version=3.6.2
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
Idin the formmarkdown:<file name>:<index>, for examplemarkdown:README.md:0002.TextandMarkdownwith the normalized Markdown of the blocks in the chunk.Location.StartLineandEndLinefrom the parser's source spans,HeadingPathsuch asGuide > Install,HeadingSlug,SourceBlockKind(heading,paragraph,table,code, ...) andBlockAnchor.Tablesfor GFM tables andix-dataviewJSON fences (columns+rows, orrecords), with column profiles.Visualsfor fencedmermaid,chart/ix-chartandnetwork/ix-network/visnetworkblocks. 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
MaxCharsbecomes its own chunk with the warningA 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.CoreandOfficeIMO.Markdown.
| 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.Markdown (>= 3.6.2)
- OfficeIMO.Reader.Core (>= 3.6.2)
-
.NETStandard 2.0
- OfficeIMO.Markdown (>= 3.6.2)
- OfficeIMO.Reader.Core (>= 3.6.2)
-
net10.0
- OfficeIMO.Markdown (>= 3.6.2)
- OfficeIMO.Reader.Core (>= 3.6.2)
-
net8.0
- OfficeIMO.Markdown (>= 3.6.2)
- OfficeIMO.Reader.Core (>= 3.6.2)
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 |