# Get-OfficeMarkdownTable

Gets Markdown tables from a Markdown document. Review available syntax, parameters, pipeline guidance, and reference details in PSWriteOffice Cmdlet Reference.

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`OfficeIMO.Markdown.MarkdownDocument` `System.String`

**Outputs**

`OfficeIMO.Markdown.TableBlock` `System.Management.Automation.PSObject`

**Source**

[GetOfficeMarkdownTableCommand.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/Markdown/GetOfficeMarkdownTableCommand.cs#L17) 

Gets Markdown tables from a Markdown document.

## Syntax

```
Get-OfficeMarkdownTable
[-AsObject]
[-Document <MarkdownDocument>]
[<CommonParameters>]
```

[#](#method-get-officemarkdowntable-switchparameter-markdowndocument)

Parameter set: `Document`

```
Get-OfficeMarkdownTable
[-AsObject]
[-Options <Object[]>]
[-Path] <String>
[<CommonParameters>]
```

[#](#method-get-officemarkdowntable-switchparameter-object-string)

Parameter set: `Path`

```
Get-OfficeMarkdownTable
[-AsObject]
-LiteralPath <String>
[-Options <Object[]>]
[<CommonParameters>]
```

[#](#method-get-officemarkdowntable-switchparameter-string-object)

Parameter set: `LiteralPath`

```
Get-OfficeMarkdownTable
[-AsObject]
[-Options <Object[]>]
-Text <String>
[<CommonParameters>]
```

[#](#method-get-officemarkdowntable-switchparameter-object-string-2)

Parameter set: `Text`

## Guides & Samples

Authored walkthroughs and practical samples linked to this command.

- [Parse and Inspect Markdown Files](/docs/markdown/parse-and-inspect/) Guide
  
  Load Markdown into a typed model, list headings, read and edit YAML or TOML front matter, extract tables and code blocks, and check diagnostics.
- [Read and Parse Markdown Content](/docs/pswriteoffice/markdown-read-parse/) Guide
  
  Read Markdown as a document model and extract front matter, headings, nodes, and tables without fragile regular expressions.

## Examples

### Read tables as PowerShell objects.

```powershell
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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

<!-- PowerForge markdown artifact sha256:9B2FBDE09A2EB345D6F7E0C01417D4B9D678892EFD0961218C5C7F9DE7FB73A0 -->
