Cmdlet
New-OfficeWordMarkdownOptions
Creates native Word-to-Markdown options for Convert-OfficeDocument.
Syntax
New-OfficeWordMarkdownOptions
[-EnableHighlight]
[-EnableUnderline]
[-Font <String>]
[-ImageDirectory <String>]
[-ImageExportMode <Base64| File>]
[<CommonParameters>]#Parameter set:
DefaultExamples
Retain underline and highlight markup in a runbook.
$options = New-OfficeWordMarkdownOptions -EnableUnderline -EnableHighlight
Convert-OfficeDocument -Path ./Runbook.docx -To Markdown -OutputPath ./Runbook.md -Options $optionsParameters
- -EnableHighlight SwitchParameter
- Wrap highlighted text in double equals signs.
- -EnableUnderline SwitchParameter
- Wrap underlined text in HTML underline tags.
- -Font String
- Font family whose runs become inline code; omission uses the native monospace resolver.
- -ImageDirectory String
- Filesystem folder for images when File mode is selected; this command does not create it.
- -ImageExportMode WordMarkdownImageExportMode
- Embed images as Base64 or save them as File references.
- Possible values:
Base64,File
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.