Project

PSWriteOffice

PSWriteOffice is an open-source PowerShell and .NET project with packages, release history, and technical documentation.

Stars158
Forks14
Open issues0
PowerShell Gallery downloads158661
Releasev3.0.5
Language: C# Updated: 2026-08-20T06:15:04.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 -InputPath '.\Article.md'
$frontMatter = Get-OfficeMarkdownFrontMatter -InputPath '.\Article.md'
$tables = Get-OfficeMarkdownTable -InputPath '.\Article.md' -AsObject
$nodes = Get-OfficeMarkdownNode -InputPath '.\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.