API Reference
Cmdlet
Get-OfficeMarkdownTable
Gets Markdown tables from a Markdown document.
Remarks
Gets Markdown tables from a Markdown document.
Examples
Read tables as PowerShell objects.
PS>
Get-OfficeMarkdown -Path .\Report.md | Get-OfficeMarkdownTable -AsObject
Returns table rows as PowerShell objects using the Markdown header row as property names.
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-OfficeMarkdownTable [-AllowDataUrls <Nullable`1>] [-AllowedUrlScheme <String[]>] [-AllowMailtoUrls <Nullable`1>] [-AllowProtocolRelativeUrls <Nullable`1>] [-AsObject] [-BaseUri <String>] [-DisallowFileUrls <Nullable`1>] -InputPath <String> [-MaxInputCharacters <Nullable`1>] [-NormalizeInput <Nullable`1>] [-Options <MarkdownReaderOptions>] [-Profile <Nullable`1>] [-RestrictUrlSchemes <Nullable`1>] [<CommonParameters>]#Parameter set:
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.
- AsObject SwitchParameter
- Emit table rows as PowerShell objects instead of raw table blocks.
- BaseUri String
- Base URI used to resolve and restrict relative Markdown links and images.
- DisallowFileUrls Nullable`1
- Block file URLs while parsing Markdown links and images.
- InputPath String
- Path to the Markdown file.
- MaxInputCharacters Nullable`1
- Maximum Markdown input length accepted by the reader.
- 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.
- RestrictUrlSchemes Nullable`1
- Restrict parsed URL schemes to the allow-list.
Outputs
OfficeIMO.Markdown.TableBlock System.Management.Automation.PSObject
Get-OfficeMarkdownTable [-AllowDataUrls <Nullable`1>] [-AllowedUrlScheme <String[]>] [-AllowMailtoUrls <Nullable`1>] [-AllowProtocolRelativeUrls <Nullable`1>] [-AsObject] [-BaseUri <String>] [-DisallowFileUrls <Nullable`1>] -Document <MarkdownDoc> [-MaxInputCharacters <Nullable`1>] [-NormalizeInput <Nullable`1>] [-Options <MarkdownReaderOptions>] [-Profile <Nullable`1>] [-RestrictUrlSchemes <Nullable`1>] [<CommonParameters>]#Parameter set:
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.
- AsObject SwitchParameter
- Emit table rows as PowerShell objects instead of raw table blocks.
- BaseUri String
- Base URI used to resolve and restrict relative Markdown links and images.
- DisallowFileUrls Nullable`1
- Block file URLs while parsing Markdown links and images.
- Document MarkdownDoc
- Markdown document to inspect.
- MaxInputCharacters Nullable`1
- Maximum Markdown input length accepted by the reader.
- 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.
- RestrictUrlSchemes Nullable`1
- Restrict parsed URL schemes to the allow-list.
Outputs
OfficeIMO.Markdown.TableBlock System.Management.Automation.PSObject
Get-OfficeMarkdownTable [-AllowDataUrls <Nullable`1>] [-AllowedUrlScheme <String[]>] [-AllowMailtoUrls <Nullable`1>] [-AllowProtocolRelativeUrls <Nullable`1>] [-AsObject] [-BaseUri <String>] [-DisallowFileUrls <Nullable`1>] [-MaxInputCharacters <Nullable`1>] [-NormalizeInput <Nullable`1>] [-Options <MarkdownReaderOptions>] [-Profile <Nullable`1>] [-RestrictUrlSchemes <Nullable`1>] -Text <String> [<CommonParameters>]#Parameter set:
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.
- AsObject SwitchParameter
- Emit table rows as PowerShell objects instead of raw table blocks.
- BaseUri String
- Base URI used to resolve and restrict relative Markdown links and images.
- DisallowFileUrls Nullable`1
- Block file URLs while parsing Markdown links and images.
- MaxInputCharacters Nullable`1
- Maximum Markdown input length accepted by the reader.
- 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.
- RestrictUrlSchemes Nullable`1
- Restrict parsed URL schemes to the allow-list.
- Text String
- Markdown text to parse.
Outputs
OfficeIMO.Markdown.TableBlock System.Management.Automation.PSObject