Cmdlet
Get-OfficeMarkdownNode
Gets the OfficeIMO.Markdown object tree from Markdown content.
Syntax
Get-OfficeMarkdownNode
[-CaseSensitive]
[-Document <MarkdownDocument>]
[-MaxDepth <Int32>]
[-NodeType <String>]
[-Raw]
[<CommonParameters>]#Parameter set:
DocumentGet-OfficeMarkdownNode
[-CaseSensitive]
[-MaxDepth <Int32>]
[-NodeType <String>]
[-Options <Object[]>]
[-Path] <String>
[-Raw]
[<CommonParameters>]#Parameter set:
PathGet-OfficeMarkdownNode
[-CaseSensitive]
-LiteralPath <String>
[-MaxDepth <Int32>]
[-NodeType <String>]
[-Options <Object[]>]
[-Raw]
[<CommonParameters>]#Parameter set:
LiteralPathGet-OfficeMarkdownNode
[-CaseSensitive]
[-MaxDepth <Int32>]
[-NodeType <String>]
[-Options <Object[]>]
[-Raw]
-Text <String>
[<CommonParameters>]#Parameter set:
TextDescription
Returns PowerShell-friendly node records by default. Use -Raw to emit the underlying OfficeIMO nodes.
Examples
Inspect the Markdown object tree.
Get-OfficeMarkdownNode -Text "# Report`n`n## Summary"Parses Markdown text and returns the document, block, and inline object tree.
Inspect a parsed document.
Open-OfficeMarkdown -Path .\README.md | Get-OfficeMarkdownNode -NodeType '*Table*'Returns matching nodes from an existing Markdown document.
Parameters
- -CaseSensitive SwitchParameter
- Use case-sensitive matching for node type filters.
- -Document MarkdownDocument
- Caller-owned document; omission uses the enclosing Markdown document.
- -MaxDepth Int32
- Maximum traversal depth. Zero returns only the document root.
- -NodeType String
- Optional wildcard pattern matched against node type names.
- -Raw SwitchParameter
- Emit raw OfficeIMO.Markdown node objects instead of PowerShell-friendly records.
- -Options Object[]
- Native reader options and optional native-property hashtable overrides.
- -Path String
- Input file with FileSystem wildcard expansion.
- -LiteralPath String
- Literal input file, including a FileInfo pipeline.
- -Text String
- 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.