This command exports a CommandHelp object to a markdown file. You can add metadata frontmatter
to the markdown file by using the Metadata parameter. You can get a CommandHelp object by
using the Export-MarkdownCommandHelp cmdlet or one of the Import-* cmdlets.
Examples
Example 1 - Convert old Markdown help content to the new format
This example imports Markdown help in the old format from the .\v1 folder and exports it to the
.\v2 folder in the new format.
Example 2 - Convert a folder of old Markdown help content to the new format
This example imports Markdown help in the old format from the .\v1 folder and exports it to the
.\v1\new folder in the new format. If necessary, Export-MarkdownCommandHelp creates the
destination folders. The new markdown files are written to folder named for the module they belong
to.
The encoding to use when writing the markdown file. If no value is specified, encoding defaults to
the value of the $OutputEncoding preference variable.
The metadata to add to the frontmatter of the markdown file. The metadata is a hashtable where the
you specify the key and value pairs to add to the frontmatter. New key names are added to the
existing frontmatter. The values of existing keys are overwritten.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters.