API Reference
Command
Add-OfficeMarkdownCode
Adds a Markdown code block.
Remarks
Adds a Markdown code block.
Examples
Add a PowerShell code block.
PS>MarkdownCode -Language 'powershell' -Content 'Get-Process'
Appends a fenced code block to the document.
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-OfficeMarkdownCode -Content <String> [-Language <String>] [-PassThru] [<CommonParameters>]#Parameter set:
ContextParameters
- Content String
- Code content.
- Language String
- Code language identifier.
- PassThru SwitchParameter
- Emit the Markdown document after appending the code block.
Outputs
OfficeIMO.Markdown.MarkdownDoc
Add-OfficeMarkdownCode -Content <String> -Document <MarkdownDoc> [-Language <String>] [-PassThru] [<CommonParameters>]#Parameter set:
DocumentParameters
- Content String
- Code content.
- Document MarkdownDoc
- Markdown document to update outside the DSL context.
- Language String
- Code language identifier.
- PassThru SwitchParameter
- Emit the Markdown document after appending the code block.
Outputs
OfficeIMO.Markdown.MarkdownDoc