SysProM
    Preparing search index...

    Function markdownToText

    • Parse a Markdown text block back into the canonical text representation. Single-line content stays as a string; multiline becomes an array.

      Parameters

      • block: string

        The Markdown text block to parse.

      Returns string | string[]

      A string for single-line content, or an array of lines for multiline.

      markdownToText("single line") // => "single line"
      markdownToText("line 1\nline 2") // => ["line 1", "line 2"]