Skip to Content
Md2Docx logo Md2Docx

Fragment

Updated 22 Oct 2026

Defined in: packages/mdast/src/index.ts:33

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 | Blockquote | Code | Html | Link | Strong | Table | Image | SVG | Text | MdxJsxTextElement | MdxJsxFlowElement | Break | Definition | Delete | Emphasis | FootnoteDefinition | FootnoteReference | Heading | ImageReference | InlineCode | LinkReference | List | ListItem | Paragraph | TableCell | TableRow | ThematicBreak | Yaml | Checkbox | InlineMath | Math)[]

Defined in: packages/mdast/src/index.ts:35

List of children.

Overrides

Parent.children

data?

optional data?: FragmentData

Defined in: packages/mdast/src/index.ts:36

Info from the ecosystem.

Overrides

Parent.data

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

Parent.position

type

type: "fragment"

Defined in: packages/mdast/src/index.ts:34

Node type.

Overrides

Parent.type

On this page