Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Get-OfficeMarkdownTable

Module
PSWriteOffice
Inputs
OfficeIMO.Markdown.MarkdownDocument System.String
Outputs
OfficeIMO.Markdown.TableBlock System.Management.Automation.PSObject

Gets Markdown tables from a Markdown document.

Syntax

Get-OfficeMarkdownTable
[-AsObject]
[-Document <MarkdownDocument>]
[<CommonParameters>]
#
Parameter set: Document
Get-OfficeMarkdownTable
[-AsObject]
[-Options <Object[]>]
[-Path] <String>
[<CommonParameters>]
#
Parameter set: Path
Get-OfficeMarkdownTable
[-AsObject]
-LiteralPath <String>
[-Options <Object[]>]
[<CommonParameters>]
#
Parameter set: LiteralPath
Get-OfficeMarkdownTable
[-AsObject]
[-Options <Object[]>]
-Text <String>
[<CommonParameters>]
#
Parameter set: Text

Examples

Read tables as PowerShell objects.

Open-OfficeMarkdown -Path .\Report.md | Get-OfficeMarkdownTable -AsObject

Returns table rows as PowerShell objects using the Markdown header row as property names.

Parameters

-AsObject SwitchParameter optional
Emit table rows as PowerShell objects instead of raw table blocks.
-Document MarkdownDocument optionalpipeline: True (ByValue)sets: Document
Caller-owned document; omission uses the enclosing Markdown document.
-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.