Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

New-OfficeWordMarkdownOptions

Module
PSWriteOffice
Inputs
None
Outputs
OfficeIMO.Word.Markdown.WordMarkdownExportOptions

Creates native Word-to-Markdown options for Convert-OfficeDocument.

Syntax

New-OfficeWordMarkdownOptions
[-EnableHighlight]
[-EnableUnderline]
[-Font <String>]
[-ImageDirectory <String>]
[-ImageExportMode <Base64|File>]
[<CommonParameters>]
#
Parameter set: Default

Examples

Retain underline and highlight markup in a runbook.

$options = New-OfficeWordMarkdownOptions -EnableUnderline -EnableHighlight
Convert-OfficeDocument -Path ./Runbook.docx -To Markdown -OutputPath ./Runbook.md -Options $options

Parameters

-EnableHighlight SwitchParameter optional
Wrap highlighted text in double equals signs.
-EnableUnderline SwitchParameter optional
Wrap underlined text in HTML underline tags.
-Font String optional
Font family whose runs become inline code; omission uses the native monospace resolver.
-ImageDirectory String optional
Filesystem folder for images when File mode is selected; this command does not create it.
-ImageExportMode WordMarkdownImageExportMode optional
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.