API Reference
Command
Add-OfficeMarkdownDetails
Adds a collapsible Markdown details block.
Remarks
Adds a collapsible Markdown details block.
Examples
Add a details section.
PS>MarkdownDetails -Summary 'Implementation notes' { MarkdownParagraph -Text 'Hidden by default.' }
Appends a details/summary block with nested Markdown content.
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-OfficeMarkdownDetails -Content <ScriptBlock> [-Open] [-PassThru] -Summary <String> [<CommonParameters>]#Parameter set:
ContextParameters
- Content ScriptBlock
- Nested Markdown content rendered inside the details block.
- Open SwitchParameter
- Render the details block as open by default.
- PassThru SwitchParameter
- Emit the updated Markdown document.
- Summary String
- Summary text displayed by the details block.
Outputs
OfficeIMO.Markdown.MarkdownDoc
Add-OfficeMarkdownDetails -Content <ScriptBlock> -Document <MarkdownDoc> [-Open] [-PassThru] -Summary <String> [<CommonParameters>]#Parameter set:
DocumentParameters
- Content ScriptBlock
- Nested Markdown content rendered inside the details block.
- Document MarkdownDoc
- Markdown document to update outside the DSL context.
- Open SwitchParameter
- Render the details block as open by default.
- PassThru SwitchParameter
- Emit the updated Markdown document.
- Summary String
- Summary text displayed by the details block.
Outputs
OfficeIMO.Markdown.MarkdownDoc