API Reference
Cmdlet
Add-OfficeMarkdownFrontMatter
Adds YAML front matter to a Markdown document.
Remarks
Adds YAML front matter to a Markdown document.
Examples
Example 1: Add front matter from a hashtable.
PS>
MarkdownFrontMatter -InputObject @{ title = 'Weekly Report'; tags = @('ops','summary') }
Sets the document header using the supplied key/value pairs.
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-OfficeMarkdownFrontMatter -InputObject <Object> [-PassThru] [<CommonParameters>]#Parameter set:
ContextParameters
- InputObject Object
- Front matter data expressed as a hashtable or object.
- PassThru SwitchParameter
- Emit the updated Markdown document.
Outputs
OfficeIMO.Markdown.MarkdownDoc
Add-OfficeMarkdownFrontMatter -Document <MarkdownDoc> -InputObject <Object> [-PassThru] [<CommonParameters>]#Parameter set:
DocumentParameters
- Document MarkdownDoc
- Markdown document to update outside the DSL context.
- InputObject Object
- Front matter data expressed as a hashtable or object.
- PassThru SwitchParameter
- Emit the updated Markdown document.
Outputs
OfficeIMO.Markdown.MarkdownDoc