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

    Type Alias MarkdownRendererHelpers

    type MarkdownRendererHelpers = {
        indent: (content: string) => string;
        renderChildren: (
            nodes: JSONContent | JSONContent[],
            separator?: string,
        ) => string;
        wrapInBlock: (prefix: string, content: string) => string;
    }
    Index

    Properties

    indent: (content: string) => string

    Indent a markdown string according to the provided RenderContext

    Type Declaration

      • (content: string): string
      • Parameters

        • content: string

          The content to indent

        Returns string

        The indented content

    renderChildren: (
        nodes: JSONContent | JSONContent[],
        separator?: string,
    ) => string

    Render children nodes to a markdown string, optionally separated by a string.

    Type Declaration

      • (nodes: JSONContent | JSONContent[], separator?: string): string
      • Parameters

        • nodes: JSONContent | JSONContent[]

          The node or array of nodes to render

        • Optionalseparator: string

          An optional separator string (legacy) or RenderContext

        Returns string

        The rendered markdown string

    wrapInBlock: (prefix: string, content: string) => string

    Render a text token to a markdown string

    Type Declaration

      • (prefix: string, content: string): string
      • Parameters

        • prefix: string

          The prefix to add before the content

        • content: string

          The content to wrap

        Returns string

        The wrapped content