Skip to content

Function: normalizeProseMarkdown()

ts
function normalizeProseMarkdown(text): string;

Defined in: emitters/markdown/src/render.ts:248

Normalize block-level prose for CommonMark: insert a blank line before any list marker (- , * , + , or \d+. ) when the preceding non-empty line is not already a list item. Without this, CommonMark treats the list items as paragraph continuation text.

Parameters

text

string

Returns

string

Released under the MIT License