Perseus
    Preparing search index...

    Interface RendererPromptJSON

    JSON describing a Perseus renderer. Intended for consumption by AI tools. A "renderer" is essentially a Markdown document with embedded interactive widgets.

    interface RendererPromptJSON {
        content: string;
        widgets: { [widgetId: string]: WidgetPromptJSON };
    }

    Hierarchy (View Summary)

    Index

    Properties

    Properties

    content: string

    Markdown content of the document. Widgets are represented by placeholders containing a Unicode snowman symbol, e.g. [[☃ radio 1]]. May contain TeX delimited by dollar signs, e.g. $\dfrac{1}{2}$. Literal dollar signs are escaped by backslashes.

    widgets: { [widgetId: string]: WidgetPromptJSON }

    Information about the configuration and UI state of each widget.