EmphasisInlineParser Class

An inline parser for EmphasisInline.

public class EmphasisInlineParser : InlineParser, IPostInlineProcessor
Inheritance
InlineParser EmphasisInlineParser
Implements

Nested types

NameDescription
EmphasisInlineParser.DelimitersObjectCacheRepresents the DelimitersObjectCache type.
EmphasisInlineParser.TryCreateEmphasisInlineDelegateRepresents the EmphasisInline type.

Constructors

NameDescription
EmphasisInlineParser()Initializes a new instance of the EmphasisInlineParser class.

EmphasisInlineParser()

EmphasisInlineParser.cs

Initializes a new instance of the EmphasisInlineParser class.

public EmphasisInlineParser()

Properties

NameDescription
CjkFriendlyEmphasisGets or toggles whether the emphasis parser should be CJK-friendly.
EmphasisDescriptorsGets the emphasis descriptors.

CjkFriendlyEmphasis

EmphasisInlineParser.cs

Gets or toggles whether the emphasis parser should be CJK-friendly.

public bool CjkFriendlyEmphasis { get; set; }

EmphasisDescriptors

EmphasisInlineParser.cs

Gets the emphasis descriptors.

public List<EmphasisDescriptor> EmphasisDescriptors { get; }

Methods

NameDescription
HasEmphasisChar(char)Determines whether this parser is using the specified character as an emphasis delimiter.
Initialize()Performs the initialize operation.
Match(InlineProcessor, StringSlice)Attempts to match the parser at the current position.
PostProcess(InlineProcessor, Inline?, Inline?, int, bool)Performs the post process operation.

HasEmphasisChar(char)

EmphasisInlineParser.cs

Determines whether this parser is using the specified character as an emphasis delimiter.

public bool HasEmphasisChar(char c)

Parameters

c char
The character to look for.

Returns

bool true if this parser is using the specified character as an emphasis delimiter; otherwise false

Performs the initialize operation.

public override void Initialize()

Match(InlineProcessor, StringSlice)

EmphasisInlineParser.cs

Attempts to match the parser at the current position.

public override bool Match(InlineProcessor processor, ref StringSlice slice)

Parameters

processor InlineProcessor
slice StringSlice

Returns

bool

PostProcess(InlineProcessor, Inline?, Inline?, int, bool)

EmphasisInlineParser.cs

Performs the post process operation.

public bool PostProcess(InlineProcessor state, Inline? root, Inline? lastChild, int postInlineProcessorIndex, bool isFinalProcessing)

Parameters

state InlineProcessor
root Inline?
lastChild Inline?
postInlineProcessorIndex int
isFinalProcessing bool

Returns

bool

Fields

NameDescription
TryCreateEmphasisInlineListGets or sets the try create emphasis inline list.

TryCreateEmphasisInlineList

Gets or sets the try create emphasis inline list.

public readonly List<EmphasisInlineParser.TryCreateEmphasisInlineDelegate> TryCreateEmphasisInlineList