Project

PSWriteOffice

PowerShell document automation across Word, Excel, PowerPoint, PDF, Reader, Confluence, Visio, and open text formats.

Stars160
Forks14
Open issues0
PowerShell Gallery downloads158661
Releasev3.0.5
Language: C# Updated: 2026-09-07T07:20:15.0000000+00:00

Documentation

Read and Parse Markdown Content

Read Markdown as a document model and extract front matter, headings, nodes, and tables without fragile regular expressions.

Markdown is simple text, but structure-aware parsing is safer than ad hoc regular expressions when documents contain front matter, nested blocks, callouts, tables, task lists, or several Markdown dialects.

Inspect semantic structures

$headings = Get-OfficeMarkdownHeading -Path '.\Article.md'
$frontMatter = Get-OfficeMarkdownFrontMatter -Path '.\Article.md'
$tables = Get-OfficeMarkdownTable -Path '.\Article.md' -AsObject
$nodes = Get-OfficeMarkdownNode -Path '.\Article.md' -MaxDepth 3

Reader profiles and URL restrictions make parsing behavior explicit. Use heading level, text, anchor, node type, and depth filters to return only the structures the workflow needs.

The inspect-content recipe creates a document with front matter and a table, then reads those structures with dedicated commands.