API Reference
Cmdlet
Add-OfficeMarkdownHeading
Adds a Markdown heading.
Remarks
Adds a Markdown heading.
Examples
Example 1: Add headings that feed the Markdown table of contents.
PS>
New-OfficeMarkdown -Path .\Report.md {
Add-OfficeMarkdownHeading -Level 1 -Text 'Operational Report'
Add-OfficeMarkdownTableOfContents -Title 'Contents' -MinLevel 2 -MaxLevel 3 -PlaceAtTop
Add-OfficeMarkdownHeading -Level 2 -Text 'Overview'
Add-OfficeMarkdownParagraph -Text 'Current operational state.'
}
Appends headings that can be included in a generated table of contents.
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.
Syntax
Add-OfficeMarkdownHeading [-Level <Int32>] [-PassThru] -Text <String> [<CommonParameters>]#Parameter set:
ContextParameters
- Level Int32
- Heading level (1-6).
- PassThru SwitchParameter
- Emit the Markdown document after appending the heading.
- Text String
- Heading text.
Outputs
OfficeIMO.Markdown.MarkdownDoc
Add-OfficeMarkdownHeading -Document <MarkdownDoc> [-Level <Int32>] [-PassThru] -Text <String> [<CommonParameters>]#Parameter set:
DocumentParameters
- Document MarkdownDoc
- Markdown document to update outside the DSL context.
- Level Int32
- Heading level (1-6).
- PassThru SwitchParameter
- Emit the Markdown document after appending the heading.
- Text String
- Heading text.
Outputs
OfficeIMO.Markdown.MarkdownDoc