ReplaceParentContainer(ContainerBlock, ContainerBlock) Method

Definition

Namespace Markdig.Parsers
Assembly Markdig.dll

Requests a replacement for a parent container while processing the current leaf block.

public void ReplaceParentContainer(ContainerBlock previousParentContainer, ContainerBlock newParentContainer)

Parameters

previousParentContainer
ContainerBlock

The parent container that has already been replaced in the block tree.

newParentContainer
ContainerBlock

The replacement parent container.

Remarks

This method does not perform the replacement in the block tree. Callers must already update the AST (replace the parent block and transfer children as needed). This method only synchronizes the traversal state used by Markdig.Parsers.MarkdownParser.ProcessInlines(Markdig.Parsers.InlineProcessor%2cMarkdig.Syntax.MarkdownDocument).