OfficeIMO.Markup 3.6.1

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

OfficeIMO.Markup - semantic Office authoring

OfficeIMO.Markup is a Markdown-inspired authoring layer for OfficeIMO. It parses .omd or Markdown-like text into a semantic AST that can be validated, emitted as starter code, or exported to real Office files by target-specific renderers.

Authoring model

The pipeline is intentionally staged:

  • Parse Markdown, front matter, and OfficeIMO directives.
  • Produce a semantic AST independent from C# and PowerShell APIs.
  • Validate the AST against a document, workbook, or presentation profile.
  • Emit starter C# or PowerShell code when a user wants to take over in code.
  • Export real Office files through profile-specific exporter packages.

Example

---
profile: presentation
title: Quarterly Review
theme: evotec-modern
---

# Quarterly Review

@slide {
  layout: title-and-content
  transition: fade
}

- Revenue grew
- Churn improved

::notes
Open with the top-line result.

Examples

Parse and validate semantic markup

using OfficeIMO.Markup;

OfficeMarkupParseResult result = OfficeMarkupParser.Parse(File.ReadAllText("quarterly-review.omd"));

foreach (OfficeMarkupDiagnostic diagnostic in result.Diagnostics) {
    Console.WriteLine($"{diagnostic.Severity}: {diagnostic.Message}");
}

if (result.HasErrors) {
    throw new InvalidOperationException("Markup contains validation errors.");
}

Console.WriteLine(result.Document.Profile);
Console.WriteLine(result.Document.Metadata["title"]);

Emit starter C# for handoff

using OfficeIMO.Markup;

OfficeMarkupParseResult result = OfficeMarkupParser.Parse(File.ReadAllText("document.omd"));

string csharp = new OfficeMarkupCSharpEmitter().Emit(result.Document,
    new OfficeMarkupEmitterOptions {
        FilePathVariable = "outputPath",
        IncludeHeader = true
    });

File.WriteAllText("document.generated.cs", csharp);

Export the same semantic document to an Office file

using OfficeIMO.Markup;
using OfficeIMO.Markup.Word;

OfficeMarkupParseResult result = OfficeMarkupParser.Parse(File.ReadAllText("status-brief.omd"));

result.Document.SaveAsWord("status-brief.docx", new MarkupWordExportOptions {
    });

What it understands

  • Common Markdown structure through OfficeIMO.Markdown: headings, paragraphs, lists, fenced code, images, and pipe tables.
  • Front matter for document-level metadata and target profile selection.
  • Container directives such as @slide, @section, and @sheet.
  • Office-aware blocks such as ::notes, ::chart, ::mermaid, ::range, ::formula, ::table, ::textbox, ::columns, ::column, and ::card.
  • Semantic chart, workbook, slide, document, layout, and style attributes that exporters can map to editable Office features.

Boundaries

  • OfficeIMO.Markup owns parsing, semantic AST, validation, and code emission.
  • Word export belongs in OfficeIMO.Markup.Word.
  • Excel export belongs in OfficeIMO.Markup.Excel.
  • PowerPoint export belongs in OfficeIMO.Markup.PowerPoint.
  • CLI workflows belong in the officeimo markup command area in OfficeIMO.Tool.
  • VS Code authoring support belongs in OfficeIMO.Markup.VSCode.
Package Use it for
OfficeIMO.Markup.Word Export markup documents to Word.
OfficeIMO.Markup.Excel Export markup workbooks to Excel.
OfficeIMO.Markup.PowerPoint Export markup presentations to PowerPoint.
OfficeIMO.Tool Parse, validate, emit, and export from the officeimo markup command area.
OfficeIMO.Markdown Markdown model used by the markup parser.

Targets and license

Dependency footprint

  • External: None.
  • OfficeIMO: OfficeIMO.Markdown and OfficeIMO.Core; the semantic authoring model and validation are first-party.

See the complete OfficeIMO package map for related formats and conversion paths.

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.Markup:

Package Downloads
OfficeIMO.Markup.PowerPoint

PowerPoint renderer for OfficeIMO Markup semantic AST.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.6.1 0 11/10/2026
3.6.0 88 11/6/2026