Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

MarkdownCompactStrongLabelListBoundaryTransform

OfficeIMO.Markdown

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

Splits compact unordered strong-label list boundaries that were emitted inline after punctuation or symbols.

Inheritance

  • object
  • MarkdownCompactStrongLabelListBoundaryTransform

Remarks

This transform is intended for recoverable cleanup where markdown already parsed into a paragraph block or a simple unordered list item, but the content still contains an inline list marker that should begin a new list item. The split is performed directly on the parsed inline AST rather than by reparsing markdown text.

Examples

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

var document = MarkdownDocument.Parse("✅- **FSMO:** ok", options);

Constructors

public MarkdownCompactStrongLabelListBoundaryTransform() #

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.