Code
Updated 5 min ago
Defined in: packages/mdast/src/index.ts:628
Markdown code (flow) (block).
Extends
Properties
data?
optional data?: CodeData
Defined in: packages/mdast/src/index.ts:646
Data associated with the mdast code (flow).
Overrides
lang?
optional lang?: string | null
Defined in: packages/mdast/src/index.ts:636
Language of computer code being marked up.
meta?
optional meta?: string | null
Defined in: packages/mdast/src/index.ts:642
Custom information relating to the node.
If the lang field is present, a meta field can be present.
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: "code"
Defined in: packages/mdast/src/index.ts:632
Node type of mdast code (flow).
Overrides
value
value: string
Defined in: packages/mdast/src/index.ts:544
Plain-text value.