Class NodeVisitorBase
Base class for visitors that traverse a Markdown document.
Inheritance
Implements
Namespace: Radzen.Blazor.Markdown
Assembly: Radzen.Blazor.dll
Syntax
public abstract class NodeVisitorBase : object, INodeVisitor
Methods
VisitBlockQuote(BlockQuote)
Visits a block quote by visiting its children.
Declaration
public virtual void VisitBlockQuote(BlockQuote blockQuote)
Parameters
Type | Name | Description |
---|---|---|
BlockQuote | blockQuote |
VisitChildren(IEnumerable<INode>)
Visits a collection of nodes.
Declaration
protected void VisitChildren(IEnumerable<INode> children)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<INode> | children |
VisitCode(Code)
Visits a code node.
Declaration
public virtual void VisitCode(Code code)
Parameters
Type | Name | Description |
---|---|---|
Code | code |
VisitDocument(Document)
Visits a document by visiting its children.
Declaration
public virtual void VisitDocument(Document document)
Parameters
Type | Name | Description |
---|---|---|
Document | document |
VisitEmphasis(Emphasis)
Visits an emphasis by visiting its children.
Declaration
public virtual void VisitEmphasis(Emphasis emphasis)
Parameters
Type | Name | Description |
---|---|---|
Emphasis | emphasis |
VisitFencedCodeBlock(FencedCodeBlock)
Visits a fenced code block.
Declaration
public virtual void VisitFencedCodeBlock(FencedCodeBlock fencedCodeBlock)
Parameters
Type | Name | Description |
---|---|---|
FencedCodeBlock | fencedCodeBlock |
VisitHeading(Heading)
Visits a heading by visiting its children.
Declaration
public virtual void VisitHeading(Heading heading)
Parameters
Type | Name | Description |
---|---|---|
Heading | heading |
VisitHtmlBlock(HtmlBlock)
Visits an HTML block.
Declaration
public virtual void VisitHtmlBlock(HtmlBlock htmlBlock)
Parameters
Type | Name | Description |
---|---|---|
HtmlBlock | htmlBlock |
VisitHtmlInline(HtmlInline)
Visits an HTML block.
Declaration
public virtual void VisitHtmlInline(HtmlInline html)
Parameters
Type | Name | Description |
---|---|---|
HtmlInline | html |
VisitImage(Image)
Visits an image by visiting its children.
Declaration
public virtual void VisitImage(Image image)
Parameters
Type | Name | Description |
---|---|---|
Image | image |
VisitIndentedCodeBlock(IndentedCodeBlock)
Visits a code block.
Declaration
public virtual void VisitIndentedCodeBlock(IndentedCodeBlock codeBlock)
Parameters
Type | Name | Description |
---|---|---|
IndentedCodeBlock | codeBlock |
VisitLineBreak(LineBreak)
Visits a line break.
Declaration
public virtual void VisitLineBreak(LineBreak lineBreak)
Parameters
Type | Name | Description |
---|---|---|
LineBreak | lineBreak |
VisitLink(Link)
Visits a link by visiting its children.
Declaration
public virtual void VisitLink(Link link)
Parameters
Type | Name | Description |
---|---|---|
Link | link |
VisitListItem(ListItem)
Visits a list item by visiting its children.
Declaration
public virtual void VisitListItem(ListItem listItem)
Parameters
Type | Name | Description |
---|---|---|
ListItem | listItem |
VisitOrderedList(OrderedList)
Visits an ordered list by visiting its children.
Declaration
public virtual void VisitOrderedList(OrderedList orderedList)
Parameters
Type | Name | Description |
---|---|---|
OrderedList | orderedList |
VisitParagraph(Paragraph)
Visits a paragraph by visiting its children.
Declaration
public virtual void VisitParagraph(Paragraph paragraph)
Parameters
Type | Name | Description |
---|---|---|
Paragraph | paragraph |
VisitSoftLineBreak(SoftLineBreak)
Visits a soft line break.
Declaration
public virtual void VisitSoftLineBreak(SoftLineBreak softLineBreak)
Parameters
Type | Name | Description |
---|---|---|
SoftLineBreak | softLineBreak |
VisitStrong(Strong)
Visits a strong by visiting its children.
Declaration
public virtual void VisitStrong(Strong strong)
Parameters
Type | Name | Description |
---|---|---|
Strong | strong |
VisitTable(Table)
Visits a table.
Declaration
public virtual void VisitTable(Table table)
Parameters
Type | Name | Description |
---|---|---|
Table | table |
VisitTableCell(TableCell)
Visits a table cell by visiting its children.
Declaration
public virtual void VisitTableCell(TableCell cell)
Parameters
Type | Name | Description |
---|---|---|
TableCell | cell |
VisitTableHeaderRow(TableHeaderRow)
Visits a table header row by visiting its children.
Declaration
public virtual void VisitTableHeaderRow(TableHeaderRow header)
Parameters
Type | Name | Description |
---|---|---|
TableHeaderRow | header |
VisitTableRow(TableRow)
Visits a table row by visiting its children.
Declaration
public virtual void VisitTableRow(TableRow row)
Parameters
Type | Name | Description |
---|---|---|
TableRow | row |
VisitText(Text)
Visits a text node.
Declaration
public virtual void VisitText(Text text)
Parameters
Type | Name | Description |
---|---|---|
Text | text |
VisitThematicBreak(ThematicBreak)
Visits a thematic break.
Declaration
public virtual void VisitThematicBreak(ThematicBreak thematicBreak)
Parameters
Type | Name | Description |
---|---|---|
ThematicBreak | thematicBreak |
VisitUnorderedList(UnorderedList)
Visits an ordered list by visiting its children.
Declaration
public virtual void VisitUnorderedList(UnorderedList unorderedList)
Parameters
Type | Name | Description |
---|---|---|
UnorderedList | unorderedList |