HeadingBlock Class
Represents a heading.
public class HeadingBlock : LeafBlock- Inheritance
LeafBlockHeadingBlock
Constructors
| Name | Description |
|---|---|
| HeadingBlock(BlockParser) | Initializes a new instance of the HeadingBlock class. |
HeadingBlock(BlockParser)
HeadingBlock.csInitializes a new instance of the HeadingBlock class.
public HeadingBlock(BlockParser parser)Parameters
parserBlockParser- The parser.
Properties
| Name | Description |
|---|---|
| HeaderChar | Gets or sets the header character used to defines this heading (usually #) |
| HeaderCharCount | Gets or sets the amount of - or = characters when HeadingBlock.IsSetext is true. |
| IsSetext | True if this heading is a Setext heading. |
| Level | Gets or sets the level of heading (starting at 1 for the lowest level). |
| SetextNewline | Gets or sets the newline of the first line when HeadingBlock.IsSetext is true. Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled. |
| TriviaAfterAtxHeaderChar | Gets or sets the whitespace after the # character when HeadingBlock.IsSetext is false. Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled, otherwise StringSlice.Empty. |
HeaderChar
HeadingBlock.csHeaderCharCount
HeadingBlock.csGets or sets the amount of - or = characters when HeadingBlock.IsSetext is true.
public int HeaderCharCount { get; set; }Property value
IsSetext
HeadingBlock.csLevel
HeadingBlock.csSetextNewline
HeadingBlock.csGets or sets the newline of the first line when HeadingBlock.IsSetext is true. Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled.
public NewLine SetextNewline { get; set; }Property value
TriviaAfterAtxHeaderChar
HeadingBlock.csGets or sets the whitespace after the # character when HeadingBlock.IsSetext is false. Trivia: only parsed when MarkdownPipeline.TrackTrivia is enabled, otherwise StringSlice.Empty.
public StringSlice TriviaAfterAtxHeaderChar { get; set; }