Skip to content

Latest commit

 

History

History
88 lines (61 loc) · 2.27 KB

File metadata and controls

88 lines (61 loc) · 2.27 KB
external help file Locale Module Name ms.date online version schema title
Microsoft.PowerShell.Commands.Utility.dll-Help.xml
en-US
Microsoft.PowerShell.Utility
12/12/2022
2.0.0
Get-MarkdownOption

Get-MarkdownOption

SYNOPSIS

Returns the current colors and styles used for rendering Markdown content in the console.

SYNTAX

Get-MarkdownOption [<CommonParameters>]

DESCRIPTION

Returns the current colors and styles used for rendering Markdown content in the console. The strings displayed in the output of this cmdlet contain the ANSI escape codes used to change the color and style of the Markdown text being rendered.

For more information about Markdown, see the CommonMark website.

EXAMPLES

Example 1 - Get the current colors and style

Get-MarkdownOption
Header1         : [7m
Header2         : [4;93m
Header3         : [4;94m
Header4         : [4;95m
Header5         : [4;96m
Header6         : [4;97m
Code            : [48;2;155;155;155;38;2;30;30;30m
Link            : [4;38;5;117m
Image           : [33m
EmphasisBold    : [1m
EmphasisItalics : [36m

Note

The string values shown in the output are the characters that follow the Escape character ([char]0x1B) for the ANSI escape sequence. For more information about ANSI escape codes work, see ANSI_escape_code.

PARAMETERS

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None

You can't pipe objects to this cmdlet.

OUTPUTS

Microsoft.PowerShell.MarkdownRender.PSMarkdownOptionInfo

NOTES

RELATED LINKS

Set-MarkdownOption

ConvertFrom-Markdown

Show-Markdown

ANSI_escape_code

CommonMark