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

    Interface BlockMarkdownSpecOptions

    interface BlockMarkdownSpecOptions {
        allowedAttributes?: string[];
        content?: "block" | "inline";
        defaultAttributes?: Record<string, any>;
        getContent?: (token: MarkdownToken) => string;
        name?: string;
        nodeName: string;
        parseAttributes?: (attrString: string) => Record<string, any>;
        serializeAttributes?: (attrs: Record<string, any>) => string;
    }
    Index

    Properties

    allowedAttributes?: string[]

    Allowlist of attributes to include in markdown (if not provided, all attributes are included)

    content?: "block" | "inline"

    Content type: 'block' allows paragraphs/lists/etc, 'inline' only allows bold/italic/links/etc

    defaultAttributes?: Record<string, any>

    Default attributes to apply when parsing

    getContent?: (token: MarkdownToken) => string

    Function to extract content from the node for serialization

    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 the attribute string

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

    Function to serialize attributes to string