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

    Type Alias FullMarkdownHelpers

    FullMarkdownHelpers: MarkdownHelpers & {
        createNode: (type: string, attrs?: any, content?: any[]) => any;
        currentContext?: RenderContext;
        getExtension: (name: string) => any;
        getIndentString: (level?: number) => string;
        indent: (text: string, ctx?: RenderContext) => string;
        parseChildren: (tokens: MarkdownToken[]) => any[];
    }

    Full runtime helpers object provided by MarkdownManager to handlers. This includes the small author-facing helpers plus internal helpers that can be useful for advanced handlers.

    Type Declaration

    • createNode: (type: string, attrs?: any, content?: any[]) => any
    • OptionalcurrentContext?: RenderContext

      Current render context when calling renderers; undefined during parse.

    • getExtension: (name: string) => any
    • getIndentString: (level?: number) => string

      Return the indent string for a given level (e.g. ' ' or '\t').

    • indent: (text: string, ctx?: RenderContext) => string

      Indent a multi-line string according to the provided RenderContext.

    • parseChildren: (tokens: MarkdownToken[]) => any[]