Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

HeadingBlock

OfficeIMO.Markdown

Namespace
OfficeIMO.Markdown
Assembly
OfficeIMO.Markdown
Source revision
0eef6a5756b9 with working tree changes
Implements
IMarkdownBlock ISyntaxMarkdownBlock IContextualHtmlMarkdownBlock IHeadingMarkdownBlock IHtmlAppendableContextualMarkdownBlock
Modifiers
sealed

Markdown heading (ATX) block, levels 1–6.

Inheritance

Usage

Explore 5 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 1

Constructors

HeadingBlock 2 overloads
public HeadingBlock(int level, string text) #

Creates a new heading block.

Parameters

level int required
Desired level; constrained to [1,6].
text string required
Heading text.
public HeadingBlock(int level, InlineSequence inlines) #

Creates a new heading block from parsed inline content.

Parameters

level int required
Desired level; constrained to [1,6].
inlines OfficeIMO.Markdown.InlineSequence required
Inline content.

Properties

public int Level { get; } #

Heading level constrained to [1,6].

public InlineSequence Inlines { get; } #

Inline content owned by this heading.

public string Text { get; } #

Plain-text heading text for compatibility, slugs, and TOC labels.

public MarkdownSourceSpan? LevelSourceSpan { get; private set; } #

Source span for the heading marker or setext underline that determines the level.

public MarkdownSourceSpan? TextSourceSpan { get; private set; } #

Source span for the heading text payload.

public MarkdownSourceSpan? OpeningMarkerSourceSpan { get; private set; } #

Source span for the ATX opening marker token when parsed from markdown.

public string? OpeningMarkerText { get; private set; } #

Exact ATX opening marker token when parsed from markdown.

public MarkdownSourceSpan? SetextUnderlineMarkerSourceSpan { get; private set; } #

Source span for a Setext underline marker token when parsed from markdown.

public string? SetextUnderlineMarkerText { get; private set; } #

Exact Setext underline marker token when parsed from markdown.

public MarkdownSourceSpan? ClosingMarkerSourceSpan { get; private set; } #

Source span for an optional ATX closing marker token when parsed from markdown.

public string? ClosingMarkerText { get; private set; } #

Exact optional ATX closing marker token when parsed from markdown.