Table of Contents

Enum MarkdownStyleRole

Namespace
Terminal.Gui.Drawing
Assembly
Terminal.Gui.dll

Identifies the semantic role of a styled text segment within a Markdown.

public enum MarkdownStyleRole
Extension Methods

Fields

CodeBlock = 6

Fenced code block line. Rendered bold with a full-width dimmed background.

Emphasis = 3

Emphasized text (italic). Rendered italic.

Heading = 1

Heading text (# … ######). Rendered bold.

HeadingMarker = 2

Heading marker characters (#, ##, etc.). Rendered bold.

ImageAlt = 12

Alt-text for an image (alt). Rendered italic.

InlineCode = 5

Inline code span (code). Rendered bold with a dimmed background.

Hyperlink text (text). Absolute URLs and anchor links are underlined.

ListMarker = 8

The bullet or number prefix of a list item (e.g. ). Rendered bold.

Normal = 0

Plain body text with no special formatting.

Quote = 7

Block-quote text (> …). Rendered faint.

Strikethrough = 15

Strikethrough text (text). Rendered with strikethrough style.

Strong = 4

Strongly emphasized text (bold). Rendered bold.

Table = 10

Table row text. Rendered bold.

TaskDone = 13

Completed task-list item ([x]). Rendered with strikethrough.

TaskTodo = 14

Incomplete task-list item ([ ]). Rendered bold.

ThematicBreak = 11

Thematic break (---, ***, ___). Rendered faint.

Remarks

The role determines how the segment is rendered (font style, color, background). See Markdown for the mapping of roles to visual attributes.