ParseColumnHeader(ref StringSlice, Char, out Nullable, out Int32) Method

Definition

Assembly Markdig.dll

Parses a column header equivalent to the regexp:

\s*:\s*[delimiterChar]+\s*:\s*

public static bool ParseColumnHeader(ref StringSlice slice, char delimiterChar, scoped out TableColumnAlign? align, scoped out int delimiterCount)

Parameters

slice
StringSlice

The text slice.

delimiterChar
Char

The delimiter character (either - or =).

align
Nullable<TableColumnAlign>

The alignment of the column.

delimiterCount
Int32

The number of delimiters.

Returns

Boolean
true if parsing was successful