This command exports a ModuleFileInfo object to a markdown file. You can add metadata
frontmatter to the markdown file by using the Metadata parameter. You can get a
ModuleFileInfo object by using the Import-MarkdownModuleFile cmdlet. You can import a module
file that's written in the old format and export it to the new format.
Examples
Example 1 - Convert an old module file to the new format
In this example, a ModuleFileInfo object by importing a module Markdown file from the .\v1
folder. That object is then exported to a Markdown file in the new format using the
Export-MarkdownModuleFile.
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.