OfficeIMO.Reader.Html 0.0.25

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

OfficeIMO.Reader.Html - HTML reader adapter

nuget version nuget downloads

OfficeIMO.Reader.Html registers a modular HTML ingestion adapter for OfficeIMO.Reader.

Install

dotnet add package OfficeIMO.Reader.Html

Register

using OfficeIMO.Reader;
using OfficeIMO.Reader.Html;

DocumentReaderHtmlRegistrationExtensions.RegisterHtmlHandler();

For untrusted or size-sensitive HTML:

DocumentReaderHtmlRegistrationExtensions.RegisterHtmlHandler(
    htmlOptions: ReaderHtmlOptions.CreateUntrustedHtmlProfile(maxInputCharacters: 100_000),
    replaceExisting: true);

Examples

Convert HTML to Markdown chunks

using OfficeIMO.Reader;
using OfficeIMO.Reader.Html;

DocumentReaderHtmlRegistrationExtensions.RegisterHtmlHandler(
    htmlOptions: ReaderHtmlOptions.CreatePortableProfile(),
    replaceExisting: true);

foreach (var chunk in DocumentReader.Read("page.html", new ReaderOptions {
    MarkdownChunkByHeadings = true,
    MaxChars = 5_000
})) {
    Console.WriteLine($"{chunk.Id}: {chunk.Location.HeadingPath}");
    Console.WriteLine(chunk.Markdown ?? chunk.Text);
}

Extract tables from HTML

using OfficeIMO.Reader;
using OfficeIMO.Reader.Html;

DocumentReaderHtmlRegistrationExtensions.RegisterHtmlHandler();

IReadOnlyList<ReaderTable> tables = DocumentReader.ReadTables("report.html",
    new ReaderOptions {
        MaxTableRows = 250
    });

foreach (var table in tables) {
    Console.WriteLine($"{table.Rows.Count} row(s), {table.ColumnProfiles.Count} column profile(s)");
}

What it emits

  • HTML converted to Markdown through OfficeIMO.Markdown.Html.
  • Markdown-shaped ReaderChunk output.
  • Table extraction with ReaderTable.ColumnProfiles.
  • Heading-aware chunk metadata when ReaderOptions.MarkdownChunkByHeadings is enabled.
  • HTML-to-Markdown profile, transform, converter, and visual round-trip option pass-through.

Boundaries

  • Reader adapter registration belongs here.
  • HTML to Markdown conversion belongs in OfficeIMO.Markdown.Html.
  • Shared extraction contracts belong in OfficeIMO.Reader.

Targets and license

  • Targets: netstandard2.0, net8.0, net10.0.
  • License: MIT.
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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.0.25 44 6/21/2026
0.0.24 82 6/16/2026
0.0.23 218 6/16/2026
0.0.22 141 6/15/2026
0.0.21 112 6/13/2026
0.0.20 92 6/12/2026
0.0.19 94 6/9/2026
0.0.18 93 6/5/2026
0.0.17 103 5/27/2026
0.0.16 100 5/26/2026
0.0.15 98 5/26/2026
0.0.14 109 5/23/2026
0.0.13 105 5/22/2026
0.0.12 104 5/21/2026
0.0.11 94 5/21/2026
0.0.10 96 5/20/2026
0.0.9 94 5/19/2026
0.0.8 101 5/18/2026
0.0.7 106 5/16/2026
0.0.6 98 5/14/2026
Loading failed