# 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

```powershell
$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](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/PowerShell/PSWriteOffice/Examples/Markdown/Recipe-Markdown-InspectContent.ps1) creates a document with front matter and a table, then reads those structures with dedicated commands.

<!-- PowerForge markdown source sha256:9EFB844A43F556BE434F6DAB296D0CBB154D98CEA524B27D7EFEC5DD0D089042; title=True -->

<!-- PowerForge markdown artifact sha256:9E3977353D059B0A593390164CDBBD1F96BF81DC248AB03C08FE285DB229AB9C -->
