Code

Markdown code (flow) (block).

Extends

Properties

data?

optional data: CodeData

Data associated with the mdast code (flow).

Overrides

Literal.data

Defined in

node_modules/@types/mdast/index.d.ts:574


lang?

optional lang: null | string

Language of computer code being marked up.

Defined in

node_modules/@types/mdast/index.d.ts:564


meta?

optional meta: null | string

Custom information relating to the node.

If the lang field is present, a meta field can be present.

Defined in

node_modules/@types/mdast/index.d.ts:570


position?

optional position: Position

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

Literal.position

Defined in

node_modules/@types/unist/index.d.ts:103


type

type: "code"

Node type of mdast code (flow).

Overrides

Literal.type

Defined in

node_modules/@types/mdast/index.d.ts:560


value

value: string

Plain-text value.

Inherited from

Literal.value

Defined in

node_modules/@types/mdast/index.d.ts:472