@umbraco-cms/backoffice
    Preparing search index...

    Interface AtomBlockMarkdownSpecOptions

    interface AtomBlockMarkdownSpecOptions {
        allowedAttributes?: string[];
        defaultAttributes?: Record<string, any>;
        name?: string;
        nodeName: string;
        parseAttributes?: (attrString: string) => Record<string, any>;
        requiredAttributes?: string[];
        serializeAttributes?: (attrs: Record<string, any>) => string;
    }
    Index

    Properties

    allowedAttributes?: string[]

    Attributes that are allowed to be rendered back to markdown (whitelist)

    defaultAttributes?: Record<string, any>

    Default attributes to apply when parsing

    name?: string

    The markdown syntax name (defaults to nodeName if not provided)

    nodeName: string

    The Tiptap node name this spec is for

    parseAttributes?: (attrString: string) => Record<string, any>

    Function to parse attributes from token attribute string

    requiredAttributes?: string[]

    Required attributes that must be present for successful parsing

    serializeAttributes?: (attrs: Record<string, any>) => string

    Function to serialize attributes back to string for rendering