Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

MarkdownHeadingListBoundaryTransform

OfficeIMO.Markdown

Namespace
OfficeIMO.Markdown
Assembly
OfficeIMO.Markdown
Source revision
0eef6a5756b9 with working tree changes
Modifiers
sealed

Splits heading content when an unordered strong-label list marker was emitted directly after the heading text.

Inheritance

  • object
  • MarkdownHeadingListBoundaryTransform

Remarks

This transform is intended for recoverable heading-level cleanup where markdown already parsed into a heading block, but the heading text still contains an inline list marker that should begin a new unordered list item. The split is performed directly on the parsed inline AST rather than by round-tripping the heading back through markdown parsing.

Examples

var options = MarkdownLoadOptions.CreateOfficeIMOProfile();
options.DocumentTransforms.Add(new MarkdownHeadingListBoundaryTransform());

var document = MarkdownDocument.Parse("## Summary- **Item:** value", options);

Constructors

public MarkdownHeadingListBoundaryTransform() #

Methods

public MarkdownDocument Transform(MarkdownDocument document, MarkdownDocumentTransformContext context) #

Applies the transform to the supplied markdown document. Implementations may mutate document in place or return a replacement instance.

Parameters

document OfficeIMO.Markdown.MarkdownDocument required
Parsed markdown document.
context OfficeIMO.Markdown.MarkdownDocumentTransformContext required
Transform execution context.

Returns

MarkdownDocument The transformed document.