Markdown code (flow) (block).

interface Code {
    data?: CodeData;
    lang?: null | string;
    meta?: null | string;
    position?: "/home/runner/work/astro-node-fastify/astro-node-fastify/node_modules/@types/unist/index".Position;
    type: "code";
    value: string;
}

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 of a node in a source document.

Nodes that are generated (not in the original source document) must not have a position.

type: "code"

Node type of mdast code (flow).

value: string

Plain-text value.