mwg API
    Preparing search index...

    Interface MarkupSpan

    One run of styled text from inline markup.

    It is a MarkdownSpan with what markup can say and markdown cannot, so anything that renders markdown can render this: colour, a size, and a span that is an image rather than text. Colour and size are kept as written (red, #c0ffee, 14) because resolving them is the renderer's business, not this parser's - which is what makes the contract renderer-neutral, and why an image span carries a path for whoever asked rather than a texture.

    interface MarkupSpan {
        bold: boolean;
        color?: string;
        image?: string;
        italic: boolean;
        size?: number;
        tag?: string;
        text: string;
    }

    Hierarchy (View Summary)

    Index
    bold: boolean
    color?: string

    a named or explicit colour, as written: color='red', color='#c0ffee'

    image?: string

    an image rather than text: <img>path</img>; the text of such a span is empty

    italic: boolean
    size?: number

    a font size in pixels, as written: size='14'

    tag?: string

    the custom tag this run came from, when it came from one; the renderer decides its style

    text: string