Fragment
Updated 5 min ago
Defined in: packages/mdast/src/index.ts:30
Abstract mdast node that contains other mdast nodes (children).
This interface is supposed to be extended if you make custom mdast nodes.
For a union of all registered mdast parents, see Parents.
Extends
Properties
children
children: (EmptyNode | Fragment | Definition | FootnoteDefinition | ListItem | TableCell | TableRow | Yaml | Break | Delete | Emphasis | FootnoteReference | Html | Image | ImageReference | InlineCode | Link | LinkReference | Strong | Text | Checkbox | SVG | Blockquote | Code | Heading | List | Paragraph | Table | ThematicBreak)[]
Defined in: packages/mdast/src/index.ts:32
List of children.
Overrides
data?
optional data?: Data
Defined in: packages/mdast/src/index.ts:564
Info from the ecosystem.
Inherited from
position?
optional position?: Position
Defined in: node_modules/.pnpm/@types+unist@3.0.3/node_modules/@types/unist/index.d.ts:103
Position of a node in a source document.
Nodes that are generated (not in the original source document) must not have a position.
Inherited from
type
type: "fragment"
Defined in: packages/mdast/src/index.ts:31
Node type.