Cmdlet
New-OfficeMarkdownWordOptions
Creates native Markdown-to-Word settings, including an engine-owned template path.
Syntax
New-OfficeMarkdownWordOptions
[-AllowedImageDirectory <String[]>]
[-AllowLocalImages]
[-AllowRemoteImages]
[-BaseUri <String>]
[-BookmarkName <String>]
[-ContentControlAlias <String>]
[-ContentControlTag <String>]
[-FitImagesToContextWidth]
[-FitImagesToPageContentWidth]
[-Font <String>]
[-KeepPlaceholder]
[-MaxDataUriImageBytes <Int64>]
[-MaxImageHeight <OfficeLength>]
[-MaxImageWidth <OfficeLength>]
[-MaxImageWidthPercentOfContent <Double>]
[-NoDataUriImages]
[-NoFrontMatter]
[-NormalizeInput <IntelligenceXTranscript| IntelligenceXTranscriptStrict| DocsLoose>]
[-PreferNarrativeSingleLineDefinitions]
[-Profile <OfficeIMO| CommonMark| GitHubFlavoredMarkdown| Portable>]
[-ReaderOptions <MarkdownLoadOptions>]
[-Template <String>]
[-Theme <OfficeThemeInput>]
[<CommonParameters>]#Parameter set:
DefaultExamples
Insert Markdown into a template.
$options = New-OfficeMarkdownWordOptions -Template .\Templates\Runbook.dotx -BookmarkName Body
Convert-OfficeDocument -Path .\Runbook.md -To Word -OutputPath .\Runbook.docx -Options $optionsParameters
- -AllowedImageDirectory String[]
- AllowedImageDirectory override; omission preserves the native default.
- -AllowLocalImages SwitchParameter
- AllowLocalImages override; omission preserves the native default.
- -AllowRemoteImages SwitchParameter
- Allow the native bounded HTTP image loader. Omission keeps remote images disabled.
- -BaseUri String
- BaseUri override; omission preserves the native default.
- -BookmarkName String
- BookmarkName override; omission preserves the native default.
- -ContentControlAlias String
- ContentControlAlias override; omission preserves the native default.
- -ContentControlTag String
- ContentControlTag override; omission preserves the native default.
- -FitImagesToContextWidth SwitchParameter
- FitImagesToContextWidth override; omission preserves the native default.
- -FitImagesToPageContentWidth SwitchParameter
- FitImagesToPageContentWidth override; omission preserves the native default.
- -Font String
- Font override; omission preserves the native default.
- -KeepPlaceholder SwitchParameter
- KeepPlaceholder override; omission preserves the native default.
- -MaxDataUriImageBytes Int64
- MaxDataUriImageBytes override; omission preserves the native default.
- -MaxImageHeight OfficeLength
- MaxImageHeight override; omission preserves the native default.
- -MaxImageWidth OfficeLength
- MaxImageWidth override; omission preserves the native default.
- -MaxImageWidthPercentOfContent Double
- MaxImageWidthPercentOfContent override; omission preserves the native default.
- -NoDataUriImages SwitchParameter
- NoDataUriImages override; omission preserves the native default.
- -NoFrontMatter SwitchParameter
- NoFrontMatter override; omission preserves the native default.
- -NormalizeInput MarkdownInputNormalizationPreset
- NormalizeInput override; omission preserves the native default.
- Possible values:
IntelligenceXTranscript,IntelligenceXTranscriptStrict,DocsLoose - -PreferNarrativeSingleLineDefinitions SwitchParameter
- PreferNarrativeSingleLineDefinitions override; omission preserves the native default.
- -Profile MarkdownDialectProfile
- Profile override; omission preserves the native default.
- Possible values:
OfficeIMO,CommonMark,GitHubFlavoredMarkdown,Portable - -ReaderOptions MarkdownLoadOptions
- ReaderOptions override; omission preserves the native default.
- -Template String
- Template override; omission preserves the native default.
- -Theme OfficeThemeInput
- Built-in theme, shared theme object or theme template.
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.