Skip to main content

is_single_paragraph

FunctionSource

v_1: bool = is_single_paragraph(md: MarkdownIt, text: str)

Check whether the Markdown text only contains a single paragraph.

Arguments

Requires

NameTypeRequired
Description
mdMarkdownItThe markdown-it parser.
textstrThe text to be analyzed.

Returns

NameType
Description
v_1boolA flag. If it is True, the given text only contains one Markdown paragraph.