Documentation
    Preparing search index...

    Interface Code

    Pre-formatted code block.

    interface Code {
        attributes?: Attributes;
        autoAttributes?: Attributes;
        data?: Data;
        lang?: string;
        position?: Position;
        type: "code";
        value: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    attributes?: Attributes

    Manually defined attributes. #<id> definitions will be converted to an id attribute and all .<class> declarations will be turned into one class attribute whose value is a string of space-delimited declaration identifiers (so, {.a .b} will turn into "class": "a b").

    autoAttributes?: Attributes

    Attributes added by the djot.js parser. This includes automatic ids on Section elements and a few others.

    data?: Data

    Info from the ecosystem.

    lang?: string

    Language identifier. It can be written with whitespace in the document (``` ruby), in which case the string will be trimmed (so, lang will have a value of ruby in this example).

    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"

    Node type.

    value: string

    Plain value.