API Reference
Get-OfficeMarkdownNode
Gets the OfficeIMO.Markdown object tree from Markdown content.
Remarks
Returns PowerShell-friendly node records by default. Use -Raw to emit the underlying OfficeIMO nodes.
Examples
Inspect the Markdown object tree.
PS>
Get-OfficeMarkdownNode -Text "# Report`n`n## Summary"
Parses Markdown text and returns the document, block, and inline object tree.
Inspect a parsed document.
PS>
Get-OfficeMarkdown -Path .\README.md | Get-OfficeMarkdownNode -NodeType '*Table*'
Returns matching nodes from an existing Markdown document.
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.
Syntax
Get-OfficeMarkdownNode [-AllowDataUrls <Nullable`1>] [-AllowedUrlScheme <String[]>] [-AllowMailtoUrls <Nullable`1>] [-AllowProtocolRelativeUrls <Nullable`1>] [-BaseUri <String>] [-CaseSensitive] [-DisallowFileUrls <Nullable`1>] -InputPath <String> [-MaxDepth <Int32>] [-MaxInputCharacters <Nullable`1>] [-NodeType <String>] [-NormalizeInput <Nullable`1>] [-Options <MarkdownReaderOptions>] [-Profile <Nullable`1>] [-Raw] [-RestrictUrlSchemes <Nullable`1>] [<CommonParameters>]#PathParameters
- AllowDataUrls Nullable`1
- Allow data URLs while parsing Markdown links and images.
- AllowedUrlScheme String[]
- Allowed URL schemes when URL scheme restriction is enabled.
- AllowMailtoUrls Nullable`1
- Allow mailto URLs while parsing Markdown links.
- AllowProtocolRelativeUrls Nullable`1
- Allow protocol-relative URLs while parsing Markdown links and images.
- BaseUri String
- Base URI used to resolve and restrict relative Markdown links and images.
- CaseSensitive SwitchParameter
- Use case-sensitive matching for node type filters.
- DisallowFileUrls Nullable`1
- Block file URLs while parsing Markdown links and images.
- InputPath String
- Path to the Markdown file.
- MaxDepth Int32
- Maximum traversal depth. Zero returns only the document root.
- MaxInputCharacters Nullable`1
- Maximum Markdown input length accepted by the reader.
- NodeType String
- Optional wildcard pattern matched against node type names.
- NormalizeInput Nullable`1
- Applies a built-in Markdown input normalization preset before parsing.
- Options MarkdownReaderOptions
- Optional reader options used when parsing path or text input.
- Profile Nullable`1
- Named reader profile used when Options is not supplied.
- Raw SwitchParameter
- Emit raw OfficeIMO.Markdown node objects instead of PowerShell-friendly records.
- RestrictUrlSchemes Nullable`1
- Restrict parsed URL schemes to the allow-list.
Outputs
System.Management.Automation.PSObject OfficeIMO.Markdown.MarkdownObject
Get-OfficeMarkdownNode [-AllowDataUrls <Nullable`1>] [-AllowedUrlScheme <String[]>] [-AllowMailtoUrls <Nullable`1>] [-AllowProtocolRelativeUrls <Nullable`1>] [-BaseUri <String>] [-CaseSensitive] [-DisallowFileUrls <Nullable`1>] -Document <MarkdownDoc> [-MaxDepth <Int32>] [-MaxInputCharacters <Nullable`1>] [-NodeType <String>] [-NormalizeInput <Nullable`1>] [-Options <MarkdownReaderOptions>] [-Profile <Nullable`1>] [-Raw] [-RestrictUrlSchemes <Nullable`1>] [<CommonParameters>]#DocumentParameters
- AllowDataUrls Nullable`1
- Allow data URLs while parsing Markdown links and images.
- AllowedUrlScheme String[]
- Allowed URL schemes when URL scheme restriction is enabled.
- AllowMailtoUrls Nullable`1
- Allow mailto URLs while parsing Markdown links.
- AllowProtocolRelativeUrls Nullable`1
- Allow protocol-relative URLs while parsing Markdown links and images.
- BaseUri String
- Base URI used to resolve and restrict relative Markdown links and images.
- CaseSensitive SwitchParameter
- Use case-sensitive matching for node type filters.
- DisallowFileUrls Nullable`1
- Block file URLs while parsing Markdown links and images.
- Document MarkdownDoc
- Markdown document to inspect.
- MaxDepth Int32
- Maximum traversal depth. Zero returns only the document root.
- MaxInputCharacters Nullable`1
- Maximum Markdown input length accepted by the reader.
- NodeType String
- Optional wildcard pattern matched against node type names.
- NormalizeInput Nullable`1
- Applies a built-in Markdown input normalization preset before parsing.
- Options MarkdownReaderOptions
- Optional reader options used when parsing path or text input.
- Profile Nullable`1
- Named reader profile used when Options is not supplied.
- Raw SwitchParameter
- Emit raw OfficeIMO.Markdown node objects instead of PowerShell-friendly records.
- RestrictUrlSchemes Nullable`1
- Restrict parsed URL schemes to the allow-list.
Outputs
System.Management.Automation.PSObject OfficeIMO.Markdown.MarkdownObject
Get-OfficeMarkdownNode [-AllowDataUrls <Nullable`1>] [-AllowedUrlScheme <String[]>] [-AllowMailtoUrls <Nullable`1>] [-AllowProtocolRelativeUrls <Nullable`1>] [-BaseUri <String>] [-CaseSensitive] [-DisallowFileUrls <Nullable`1>] [-MaxDepth <Int32>] [-MaxInputCharacters <Nullable`1>] [-NodeType <String>] [-NormalizeInput <Nullable`1>] [-Options <MarkdownReaderOptions>] [-Profile <Nullable`1>] [-Raw] [-RestrictUrlSchemes <Nullable`1>] -Text <String> [<CommonParameters>]#TextParameters
- AllowDataUrls Nullable`1
- Allow data URLs while parsing Markdown links and images.
- AllowedUrlScheme String[]
- Allowed URL schemes when URL scheme restriction is enabled.
- AllowMailtoUrls Nullable`1
- Allow mailto URLs while parsing Markdown links.
- AllowProtocolRelativeUrls Nullable`1
- Allow protocol-relative URLs while parsing Markdown links and images.
- BaseUri String
- Base URI used to resolve and restrict relative Markdown links and images.
- CaseSensitive SwitchParameter
- Use case-sensitive matching for node type filters.
- DisallowFileUrls Nullable`1
- Block file URLs while parsing Markdown links and images.
- MaxDepth Int32
- Maximum traversal depth. Zero returns only the document root.
- MaxInputCharacters Nullable`1
- Maximum Markdown input length accepted by the reader.
- NodeType String
- Optional wildcard pattern matched against node type names.
- NormalizeInput Nullable`1
- Applies a built-in Markdown input normalization preset before parsing.
- Options MarkdownReaderOptions
- Optional reader options used when parsing path or text input.
- Profile Nullable`1
- Named reader profile used when Options is not supplied.
- Raw SwitchParameter
- Emit raw OfficeIMO.Markdown node objects instead of PowerShell-friendly records.
- RestrictUrlSchemes Nullable`1
- Restrict parsed URL schemes to the allow-list.
- Text String
- Markdown text to parse.
Outputs
System.Management.Automation.PSObject OfficeIMO.Markdown.MarkdownObject