API Reference

Cmdlet

Get-OfficeMarkdownNode

Namespace PSWriteOffice
Inputs
OfficeIMO.Markdown.MarkdownDoc
Outputs
System.Management.Automation.PSObject OfficeIMO.Markdown.MarkdownObject

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

Authored help example

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 <Boolean>] [-AllowedUrlScheme <String[]>] [-AllowMailtoUrls <Boolean>] [-AllowProtocolRelativeUrls <Boolean>] [-BaseUri <String>] [-CaseSensitive] [-DisallowFileUrls <Boolean>] -InputPath <String> [-MaxDepth <Int32>] [-MaxInputCharacters <Int32>] [-NodeType <String>] [-NormalizeInput <IntelligenceXTranscript|IntelligenceXTranscriptStrict|DocsLoose>] [-Options <MarkdownReaderOptions>] [-Profile <OfficeIMO|CommonMark|GitHubFlavoredMarkdown|Portable>] [-Raw] [-RestrictUrlSchemes <Boolean>] [<CommonParameters>]
#
Parameter set: Path

Parameters

AllowDataUrls Boolean optionalposition: namedpipeline: False
Allow data URLs while parsing Markdown links and images.
AllowedUrlScheme String[] optionalposition: namedpipeline: False
Allowed URL schemes when URL scheme restriction is enabled.
AllowMailtoUrls Boolean optionalposition: namedpipeline: False
Allow mailto URLs while parsing Markdown links.
AllowProtocolRelativeUrls Boolean optionalposition: namedpipeline: False
Allow protocol-relative URLs while parsing Markdown links and images.
BaseUri String optionalposition: namedpipeline: False
Base URI used to resolve and restrict relative Markdown links and images.
CaseSensitive SwitchParameter optionalposition: namedpipeline: False
Use case-sensitive matching for node type filters.
DisallowFileUrls Boolean optionalposition: namedpipeline: False
Block file URLs while parsing Markdown links and images.
InputPath String requiredposition: 0pipeline: Falsealiases: FilePath, Path
Path to the Markdown file.
MaxDepth Int32 optionalposition: namedpipeline: False
Maximum traversal depth. Zero returns only the document root.
MaxInputCharacters Int32 optionalposition: namedpipeline: False
Maximum Markdown input length accepted by the reader.
NodeType String optionalposition: namedpipeline: False
Optional wildcard pattern matched against node type names.
NormalizeInput MarkdownInputNormalizationPreset optionalposition: namedpipeline: Falsevalues: 3
Applies a built-in Markdown input normalization preset before parsing.
Possible values: IntelligenceXTranscript, IntelligenceXTranscriptStrict, DocsLoose
Options MarkdownReaderOptions optionalposition: namedpipeline: Falsealiases: ReaderOptions
Optional reader options used when parsing path or text input.
Profile MarkdownDialectProfile optionalposition: namedpipeline: Falsevalues: 4
Named reader profile used when Options is not supplied.
Possible values: OfficeIMO, CommonMark, GitHubFlavoredMarkdown, Portable
Raw SwitchParameter optionalposition: namedpipeline: False
Emit raw OfficeIMO.Markdown node objects instead of PowerShell-friendly records.
RestrictUrlSchemes Boolean optionalposition: namedpipeline: False
Restrict parsed URL schemes to the allow-list.

Outputs

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

Get-OfficeMarkdownNode [-AllowDataUrls <Boolean>] [-AllowedUrlScheme <String[]>] [-AllowMailtoUrls <Boolean>] [-AllowProtocolRelativeUrls <Boolean>] [-BaseUri <String>] [-CaseSensitive] [-DisallowFileUrls <Boolean>] -Document <MarkdownDoc> [-MaxDepth <Int32>] [-MaxInputCharacters <Int32>] [-NodeType <String>] [-NormalizeInput <IntelligenceXTranscript|IntelligenceXTranscriptStrict|DocsLoose>] [-Options <MarkdownReaderOptions>] [-Profile <OfficeIMO|CommonMark|GitHubFlavoredMarkdown|Portable>] [-Raw] [-RestrictUrlSchemes <Boolean>] [<CommonParameters>]
#
Parameter set: Document

Parameters

AllowDataUrls Boolean optionalposition: namedpipeline: False
Allow data URLs while parsing Markdown links and images.
AllowedUrlScheme String[] optionalposition: namedpipeline: False
Allowed URL schemes when URL scheme restriction is enabled.
AllowMailtoUrls Boolean optionalposition: namedpipeline: False
Allow mailto URLs while parsing Markdown links.
AllowProtocolRelativeUrls Boolean optionalposition: namedpipeline: False
Allow protocol-relative URLs while parsing Markdown links and images.
BaseUri String optionalposition: namedpipeline: False
Base URI used to resolve and restrict relative Markdown links and images.
CaseSensitive SwitchParameter optionalposition: namedpipeline: False
Use case-sensitive matching for node type filters.
DisallowFileUrls Boolean optionalposition: namedpipeline: False
Block file URLs while parsing Markdown links and images.
Document MarkdownDoc requiredposition: namedpipeline: True (ByValue)
Markdown document to inspect.
MaxDepth Int32 optionalposition: namedpipeline: False
Maximum traversal depth. Zero returns only the document root.
MaxInputCharacters Int32 optionalposition: namedpipeline: False
Maximum Markdown input length accepted by the reader.
NodeType String optionalposition: namedpipeline: False
Optional wildcard pattern matched against node type names.
NormalizeInput MarkdownInputNormalizationPreset optionalposition: namedpipeline: Falsevalues: 3
Applies a built-in Markdown input normalization preset before parsing.
Possible values: IntelligenceXTranscript, IntelligenceXTranscriptStrict, DocsLoose
Options MarkdownReaderOptions optionalposition: namedpipeline: Falsealiases: ReaderOptions
Optional reader options used when parsing path or text input.
Profile MarkdownDialectProfile optionalposition: namedpipeline: Falsevalues: 4
Named reader profile used when Options is not supplied.
Possible values: OfficeIMO, CommonMark, GitHubFlavoredMarkdown, Portable
Raw SwitchParameter optionalposition: namedpipeline: False
Emit raw OfficeIMO.Markdown node objects instead of PowerShell-friendly records.
RestrictUrlSchemes Boolean optionalposition: namedpipeline: False
Restrict parsed URL schemes to the allow-list.

Outputs

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

Get-OfficeMarkdownNode [-AllowDataUrls <Boolean>] [-AllowedUrlScheme <String[]>] [-AllowMailtoUrls <Boolean>] [-AllowProtocolRelativeUrls <Boolean>] [-BaseUri <String>] [-CaseSensitive] [-DisallowFileUrls <Boolean>] [-MaxDepth <Int32>] [-MaxInputCharacters <Int32>] [-NodeType <String>] [-NormalizeInput <IntelligenceXTranscript|IntelligenceXTranscriptStrict|DocsLoose>] [-Options <MarkdownReaderOptions>] [-Profile <OfficeIMO|CommonMark|GitHubFlavoredMarkdown|Portable>] [-Raw] [-RestrictUrlSchemes <Boolean>] -Text <String> [<CommonParameters>]
#
Parameter set: Text

Parameters

AllowDataUrls Boolean optionalposition: namedpipeline: False
Allow data URLs while parsing Markdown links and images.
AllowedUrlScheme String[] optionalposition: namedpipeline: False
Allowed URL schemes when URL scheme restriction is enabled.
AllowMailtoUrls Boolean optionalposition: namedpipeline: False
Allow mailto URLs while parsing Markdown links.
AllowProtocolRelativeUrls Boolean optionalposition: namedpipeline: False
Allow protocol-relative URLs while parsing Markdown links and images.
BaseUri String optionalposition: namedpipeline: False
Base URI used to resolve and restrict relative Markdown links and images.
CaseSensitive SwitchParameter optionalposition: namedpipeline: False
Use case-sensitive matching for node type filters.
DisallowFileUrls Boolean optionalposition: namedpipeline: False
Block file URLs while parsing Markdown links and images.
MaxDepth Int32 optionalposition: namedpipeline: False
Maximum traversal depth. Zero returns only the document root.
MaxInputCharacters Int32 optionalposition: namedpipeline: False
Maximum Markdown input length accepted by the reader.
NodeType String optionalposition: namedpipeline: False
Optional wildcard pattern matched against node type names.
NormalizeInput MarkdownInputNormalizationPreset optionalposition: namedpipeline: Falsevalues: 3
Applies a built-in Markdown input normalization preset before parsing.
Possible values: IntelligenceXTranscript, IntelligenceXTranscriptStrict, DocsLoose
Options MarkdownReaderOptions optionalposition: namedpipeline: Falsealiases: ReaderOptions
Optional reader options used when parsing path or text input.
Profile MarkdownDialectProfile optionalposition: namedpipeline: Falsevalues: 4
Named reader profile used when Options is not supplied.
Possible values: OfficeIMO, CommonMark, GitHubFlavoredMarkdown, Portable
Raw SwitchParameter optionalposition: namedpipeline: False
Emit raw OfficeIMO.Markdown node objects instead of PowerShell-friendly records.
RestrictUrlSchemes Boolean optionalposition: namedpipeline: False
Restrict parsed URL schemes to the allow-list.
Text String requiredposition: namedpipeline: False
Markdown text to parse.

Outputs

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