# Add-OfficeMarkdownHorizontalRule

Adds a Markdown horizontal rule. 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 **727**

Forks **84**

Open issues **7**

Total downloads **5,275,783**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-24

Cmdlet 

Aliases: MarkdownHorizontalRule, MarkdownHr

**Module**

`PSWriteOffice`

**Aliases**

`MarkdownHorizontalRule` `MarkdownHr`

**Inputs**

`OfficeIMO.Markdown.MarkdownDoc`

**Outputs**

`OfficeIMO.Markdown.MarkdownDoc`

**Source**

[AddOfficeMarkdownHorizontalRuleCommand.cs:22](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Markdown/AddOfficeMarkdownHorizontalRuleCommand.cs#L22) 

Adds a Markdown horizontal rule.

## Syntax

```
Add-OfficeMarkdownHorizontalRule
[-PassThru]
[<CommonParameters>]
```

[#](#method-add-officemarkdownhorizontalrule-switchparameter)

Parameter set: `Context`

```
Add-OfficeMarkdownHorizontalRule
-Document <MarkdownDoc>
[-PassThru]
[<CommonParameters>]
```

[#](#method-add-officemarkdownhorizontalrule-markdowndoc-switchparameter)

Parameter set: `Document`

## Examples

### Separate summary and appendix sections.

```powershell
New-OfficeMarkdown -Path .\Report.md {
    Add-OfficeMarkdownHeading -Level 2 -Text 'Summary'
    Add-OfficeMarkdownParagraph -Text 'Key decisions and status.'
    Add-OfficeMarkdownHorizontalRule
    Add-OfficeMarkdownHeading -Level 2 -Text 'Appendix'
}
```

Appends a horizontal rule between sections of the current Markdown document.

## Parameters

**-PassThru SwitchParameter optional**

Emit the Markdown document after appending the rule.

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

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:BBA1BCE78A1372CB25D7F37A637183CD76C56AF03463A75D6DA483747FD65F4F -->
