interface Code {
    data?: CodeData;
    lang?: null | string;
    meta?: null | string;
    position?: Position;
    type: "code";
    value: null | string | CodeOperation[];
}

Hierarchy (view full)

Properties

data?: CodeData

Data associated with the mdast code (flow).

lang?: null | string

Language of computer code being marked up.

meta?: null | string

Custom information relating to the node.

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

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.

type: "code"
value: null | string | CodeOperation[]

Generated using TypeDoc