Return the given string optionally formatted as a Header.
[PSObject]
HelpDoc A HelpDoc object. Mandatory, ValueFromPipeline[String]
Text A string to add to the HelpDoc. Mandatory
[PSObject]
HelpDoc A HelpDoc object. Mandatory, ValueFromPipeline[String]
Text A string to add to the HelpDoc. Mandatory[Switch]
H3 Format the text as an H3 header.
[PSObject]
HelpDoc A HelpDoc object. Mandatory, ValueFromPipeline[String]
Text A string to add to the HelpDoc. Mandatory[Switch]
H2 Format the text as an H2 header.
[PSObject]
HelpDoc A HelpDoc object. Mandatory, ValueFromPipeline[String]
Text A string to add to the HelpDoc. Mandatory[Switch]
H1 Format the text as an H1 header.
Add a level 1 header with the text "My Module Help".
Get-HelpModuleData build-docs | New-HelpDoc | Add-HelpDocText -Text "My Module Help" -H1 | Out-HelpDoc
# My Module Help
If no Header switch is provided, the default is no formatting.