# Get-OfficeMarkdownNode

Gets the OfficeIMO.Markdown object tree from Markdown content.

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`OfficeIMO.Markdown.MarkdownDocument` `System.String`

**Outputs**

`System.Management.Automation.PSObject` `OfficeIMO.Markdown.MarkdownObject`

**Source**

[GetOfficeMarkdownNodeCommand.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/Markdown/GetOfficeMarkdownNodeCommand.cs#L26) 

Gets the OfficeIMO.Markdown object tree from Markdown content.

## Syntax

```
Get-OfficeMarkdownNode
[-CaseSensitive]
[-Document <MarkdownDocument>]
[-MaxDepth <Int32>]
[-NodeType <String>]
[-Raw]
[<CommonParameters>]
```

[#](#method-get-officemarkdownnode-switchparameter-markdowndocument-int32-string-switchparameter)

Parameter set: `Document`

```
Get-OfficeMarkdownNode
[-CaseSensitive]
[-MaxDepth <Int32>]
[-NodeType <String>]
[-Options <Object[]>]
[-Path] <String>
[-Raw]
[<CommonParameters>]
```

[#](#method-get-officemarkdownnode-switchparameter-int32-string-object-string-switchparameter)

Parameter set: `Path`

```
Get-OfficeMarkdownNode
[-CaseSensitive]
-LiteralPath <String>
[-MaxDepth <Int32>]
[-NodeType <String>]
[-Options <Object[]>]
[-Raw]
[<CommonParameters>]
```

[#](#method-get-officemarkdownnode-switchparameter-string-int32-string-object-switchparameter)

Parameter set: `LiteralPath`

```
Get-OfficeMarkdownNode
[-CaseSensitive]
[-MaxDepth <Int32>]
[-NodeType <String>]
[-Options <Object[]>]
[-Raw]
-Text <String>
[<CommonParameters>]
```

[#](#method-get-officemarkdownnode-switchparameter-int32-string-object-switchparameter-string)

Parameter set: `Text`

## Description

Returns PowerShell-friendly node records by default. Use -Raw to emit the underlying OfficeIMO nodes.

## Guides & Samples

Authored walkthroughs and practical samples linked to this command.

- [Parse and Inspect Markdown Files](/docs/markdown/parse-and-inspect/) Guide
  
  Load Markdown into a typed model, list headings, read and edit YAML or TOML front matter, extract tables and code blocks, and check diagnostics.
- [Read and Parse Markdown Content](/docs/pswriteoffice/markdown-read-parse/) Guide
  
  Read Markdown as a document model and extract front matter, headings, nodes, and tables without fragile regular expressions.

## Examples

### Inspect the Markdown object tree.

```powershell
Get-OfficeMarkdownNode -Text "# Report`n`n## Summary"
```

Parses Markdown text and returns the document, block, and inline object tree.

### Inspect a parsed document.

```powershell
Open-OfficeMarkdown -Path .\README.md | Get-OfficeMarkdownNode -NodeType '*Table*'
```

Returns matching nodes from an existing Markdown document.

## Parameters

**-CaseSensitive SwitchParameter optional**

Use case-sensitive matching for node type filters.

**-Document MarkdownDocument optionalpipeline: True (ByValue)sets: Document**

Caller-owned document; omission uses the enclosing Markdown document.

**-MaxDepth Int32 optional**

Maximum traversal depth. Zero returns only the document root.

**-NodeType String optional**

Optional wildcard pattern matched against node type names.

**-Raw SwitchParameter optional**

Emit raw OfficeIMO.Markdown node objects instead of PowerShell-friendly records.

**-Options Object[] optionalsets: Path, LiteralPath, Text**

Native reader options and optional native-property hashtable overrides.

**-Path String requiredposition: 0pipeline: True (ByValue)sets: Path**

Input file with FileSystem wildcard expansion.

**-LiteralPath String requiredpipeline: True (ByPropertyName)aliases: FullName, PSPathsets: LiteralPath**

Literal input file, including a FileInfo pipeline.

**-Text String requiredsets: Text**

Markdown source text.

## Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see [about_CommonParameters](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

<!-- PowerForge markdown artifact sha256:8CED8B7E89BAD3BE27E8D040749FE0726A247F99B47D1423D7BB5DF6EFF2800E -->
