Registry of all mdast nodes that can occur as children of Root.

Note: Root does not need to be an entire document. it can also be a fragment.

This interface can be augmented to register custom node types:

declare module 'mdast' {
interface RootContentMap {
// Allow using toml nodes defined by `remark-frontmatter`.
toml: TOML;
}
}

For a union of all Root children, see RootContent.

interface RootContentMap {
    blockquote: Blockquote;
    break: Break;
    code: Code;
    definition: Definition;
    delete: Delete;
    emphasis: Emphasis;
    footnoteDefinition: FootnoteDefinition;
    footnoteReference: FootnoteReference;
    heading: Heading;
    html: Html;
    image: Image;
    imageReference: ImageReference;
    inlineCode: InlineCode;
    link: Link;
    linkReference: LinkReference;
    list: List;
    listItem: ListItem;
    paragraph: Paragraph;
    strong: Strong;
    table: Table;
    tableCell: TableCell;
    tableRow: TableRow;
    text: Text;
    thematicBreak: ThematicBreak;
    yaml: Yaml;
}

Properties

blockquote: Blockquote
break: Break
code: Code
definition: Definition
delete: Delete
emphasis: Emphasis
footnoteDefinition: FootnoteDefinition
footnoteReference: FootnoteReference
heading: Heading
html: Html
image: Image
imageReference: ImageReference
inlineCode: InlineCode
link: Link
linkReference: LinkReference
list: List
listItem: ListItem
paragraph: Paragraph
strong: Strong
table: Table
tableCell: TableCell
tableRow: TableRow
text: Text
thematicBreak: ThematicBreak
yaml: Yaml