# Add-OfficeMarkdownTable

Adds a Markdown table from objects. Review available syntax, parameters, pipeline guidance, and reference details in PSWriteOffice API Reference.

Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

[View on GitHub](https://github.com/EvotecIT/OfficeIMO/tree/master/PowerShell/PSWriteOffice) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteOffice/releases/tag/v3.0.5) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteOffice/0.2.0)

Stars **725**

Forks **84**

Open issues **3**

Total downloads **5,231,343**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-23

Cmdlet 

Aliases: MarkdownTable

**Module**

`PSWriteOffice`

**Aliases**

`MarkdownTable`

**Inputs**

`OfficeIMO.Markdown.MarkdownDoc` `System.Object`

**Outputs**

`OfficeIMO.Markdown.MarkdownDoc`

**Source**

[AddOfficeMarkdownTableCommand.cs:30](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Markdown/AddOfficeMarkdownTableCommand.cs#L30) 

Adds a Markdown table from objects.

## Syntax

```
Add-OfficeMarkdownTable
[-CollectionSeparator <String>]
[-DictionaryEntrySeparator <String>]
[-DictionaryKeyValueSeparator <String>]
[-DisableAutoAlign]
[-InputObject] <Object>
[-MaxCollectionItems <Int32>]
[-MaxNestingDepth <Int32>]
[-PassThru]
[-View <Normal|Transpose>]
[<CommonParameters>]
```

[#](#method-add-officemarkdowntable-string-string-string-switchparameter-object-int32-int32-switchparameter-officetableview)

Parameter set: `Context`

```
Add-OfficeMarkdownTable
[-CollectionSeparator <String>]
[-DictionaryEntrySeparator <String>]
[-DictionaryKeyValueSeparator <String>]
[-DisableAutoAlign]
-Document <MarkdownDoc>
[-InputObject] <Object>
[-MaxCollectionItems <Int32>]
[-MaxNestingDepth <Int32>]
[-PassThru]
[-View <Normal|Transpose>]
[<CommonParameters>]
```

[#](#method-add-officemarkdowntable-string-string-string-switchparameter-markdowndoc-object-int32-int32-switchparameter-officetableview)

Parameter set: `Document`

```
Add-OfficeMarkdownTable
[-CollectionSeparator <String>]
[-DictionaryEntrySeparator <String>]
[-DictionaryKeyValueSeparator <String>]
[-DisableAutoAlign]
-Document <MarkdownDoc>
[-InputObject] <Object>
[-MaxCollectionItems <Int32>]
[-MaxNestingDepth <Int32>]
[-PassThru]
[-View <Normal|Transpose>]
[<CommonParameters>]
```

[#](#method-add-officemarkdowntable-string-string-string-switchparameter-markdowndoc-object-int32-int32-switchparameter-officetableview-2)

Parameter set: `PipelineDocument`

## Examples

### Add a table from input objects.

```powershell
MarkdownTable -InputObject $rows
```

Appends a Markdown table using the supplied objects.

### Append multiple tables to the same document.

```powershell
$doc = New-OfficeMarkdown -Path .\Report.md -NoSave -PassThru
$doc | MarkdownTable -InputObject $summary -PassThru | MarkdownTable -InputObject $details
```

Creates two tables in sequence within the same Markdown document.

## Parameters

**-CollectionSeparator String optional**

Text used between items when a cell contains a collection.

**-DictionaryEntrySeparator String optional**

Text used between entries when a cell contains a dictionary.

**-DictionaryKeyValueSeparator String optional**

Text used between a dictionary key and value.

**-DisableAutoAlign SwitchParameter optional**

Disable automatic alignment heuristics for tables.

**-InputObject Object requiredposition: 0pipeline: True (ByValue)**

Objects to convert into a Markdown table.

**-MaxCollectionItems Int32 optional**

Maximum number of items allowed in one nested collection or dictionary cell. Defaults to 1,048,575; increase explicitly for trusted larger values.

**-MaxNestingDepth Int32 optional**

Maximum nesting depth allowed while normalizing one cell value. Defaults to 64; increase explicitly for trusted deeper values.

**-PassThru SwitchParameter optional**

Emit the Markdown document after appending the table.

**-View OfficeTableView optional**

Projection to apply before writing the table.

Possible values: `Normal`, `Transpose`

**-Document MarkdownDoc requiredpipeline: True (ByValue)sets: Document, PipelineDocument**

Markdown document to update outside the DSL context.

## 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).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:DA34E3570D3B39EE29432B39DC1DA5DA9CDC914D334C825D2D8800F930EF745D -->
