# Save-OfficeMarkdown

Saves a Markdown document without changing its lifetime.

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 **727**

Forks **84**

Open issues **7**

Total downloads **5,275,783**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-24

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`OfficeIMO.Markdown.MarkdownDoc`

**Outputs**

`OfficeIMO.Markdown.MarkdownDoc`

**Source**

[SaveOfficeMarkdownCommand.cs:19](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Markdown/SaveOfficeMarkdownCommand.cs#L19) 

Saves a Markdown document without changing its lifetime.

## Syntax

```
Save-OfficeMarkdown
[-Document] <MarkdownDoc>
[-ImageRenderingMode <RichMarkdown|PortableMarkdown|Html>]
[-LineEnding <String>]
[-PassThru]
[-Path] <String>
[-UnorderedListMarker <String>]
[-WriteOptions <MarkdownWriteOptions>]
[-WriteProfile <OfficeIMO|Portable|HtmlImage>]
[<CommonParameters>]
```

[#](#method-save-officemarkdown-markdowndoc-markdownimagerenderingmode-string-switchparameter-string-string-markdownwriteoptions-officemarkdownwriteprofile)

Parameter set: `All Parameter Sets`

## Examples

### Save a Markdown document.

```powershell
$doc | Save-OfficeMarkdown -Path .\Report.md
```

Writes the Markdown artifact and keeps the document available for further changes.

## Parameters

**-Document MarkdownDoc requiredposition: 0pipeline: True (ByValue)**

Markdown document to save.

**-ImageRenderingMode MarkdownImageRenderingMode optional**

Controls how Markdown images are serialized.

Possible values: `RichMarkdown`, `PortableMarkdown`, `Html`

**-LineEnding String optional**

Markdown line ending: CRLF, LF, CR, or a literal line ending string.

**-PassThru SwitchParameter optional**

Emit the Markdown document rather than the saved file.

**-Path String requiredposition: 1aliases: FilePath**

Destination Markdown path.

**-UnorderedListMarker String optional**

Unordered list marker: '-', '*', or '+'.

**-WriteOptions MarkdownWriteOptions optional**

Optional Markdown writer options.

**-WriteProfile OfficeMarkdownWriteProfile optional**

Friendly Markdown writer profile.

Possible values: `OfficeIMO`, `Portable`, `HtmlImage`

## 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:7A48AF7B3783B0148BE9FC2DD7D0AE29002AD2C95A47E5AA0C9557C2F5E33D46 -->
