Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

New-OfficeMarkdownHtmlOptions

Module
PSWriteOffice
Inputs
None
Outputs
OfficeIMO.Markdown.MarkdownHtmlExportOptions

Creates native Markdown HTML document, styling and resource-link settings.

Syntax

New-OfficeMarkdownHtmlOptions
[-AllowedHttpImageHost <String[]>]
[-AllowedHttpLinkHost <String[]>]
[-AssetMode <Online|Offline>]
[-BlockExternalHttpImages]
[-CssDelivery <Inline|ExternalFile|LinkHref>]
[-DocumentMode]
[-ExternalLinksReferrerPolicy <String>]
[-ExternalLinksRel <String>]
[-ExternalLinksTargetBlank]
[-GitHubFootnoteHtml]
[-GitHubTaskListHtml]
[-ImagesDecodingAsync]
[-ImagesLoadingLazy]
[-ImagesReferrerPolicy <String>]
[-IncludeAnchorLinks]
[-RawHtmlHandling <Allow|Escape|Sanitize|Strip>]
[-ReaderOptions <MarkdownLoadOptions>]
[-RestrictHttpImagesToBaseOrigin]
[-RestrictHttpLinksToBaseOrigin]
[-Style <MarkdownHtmlStyle>]
[-Theme <OfficeThemeInput>]
[-Title <String>]
[<CommonParameters>]
#
Parameter set: Default

Examples

Example 1

New-OfficeMarkdownHtmlOptions -AllowedHttpImageHost @('Value')

Parameters

-AllowedHttpImageHost String[] optional
Additional allowed HTTP hosts.
-AllowedHttpLinkHost String[] optional
Additional allowed HTTP hosts.
-AssetMode MarkdownAssetMode optional
Native AssetMode setting.
Possible values: Online, Offline
-BlockExternalHttpImages SwitchParameter optional
Enable or explicitly disable BlockExternalHttpImages.
-CssDelivery MarkdownCssDelivery optional
Native CssDelivery setting.
Possible values: Inline, ExternalFile, LinkHref
-DocumentMode SwitchParameter optional
Render a complete HTML document; explicit false renders a fragment.
-ExternalLinksReferrerPolicy String optional
Native ExternalLinksReferrerPolicy setting.
-ExternalLinksRel String optional
Native ExternalLinksRel setting.
-ExternalLinksTargetBlank SwitchParameter optional
Enable or explicitly disable ExternalLinksTargetBlank.
-GitHubFootnoteHtml SwitchParameter optional
Enable or explicitly disable GitHubFootnoteHtml.
-GitHubTaskListHtml SwitchParameter optional
Enable or explicitly disable GitHubTaskListHtml.
-ImagesDecodingAsync SwitchParameter optional
Enable or explicitly disable ImagesDecodingAsync.
-ImagesLoadingLazy SwitchParameter optional
Enable or explicitly disable ImagesLoadingLazy.
-ImagesReferrerPolicy String optional
Native ImagesReferrerPolicy setting.
Enable or explicitly disable IncludeAnchorLinks.
-RawHtmlHandling MarkdownRawHtmlHandling optional
Native RawHtmlHandling setting.
Possible values: Allow, Escape, Sanitize, Strip
-ReaderOptions MarkdownLoadOptions optional
Native syntax, normalization, URL and input-limit policy, captured independently.
-RestrictHttpImagesToBaseOrigin SwitchParameter optional
Enable or explicitly disable RestrictHttpImagesToBaseOrigin.
-RestrictHttpLinksToBaseOrigin SwitchParameter optional
Enable or explicitly disable RestrictHttpLinksToBaseOrigin.
-Style MarkdownHtmlStyle optional
Native Style setting.
Possible values: Plain, Clean, GithubLight, GithubDark, GithubAuto, ChatLight, ChatDark, ChatAuto, Word
-Theme OfficeThemeInput optional
Built-in theme, shared theme object or theme template.
-Title String optional
Native Title setting.

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.