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