Class
MarkdownHeadingListBoundaryTransform
OfficeIMO.Markdown
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
- Parsed markdown document.
- context OfficeIMO.Markdown.MarkdownDocumentTransformContext
- Transform execution context.