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
| Name | Type | Required | |
|---|---|---|---|
md | MarkdownIt | The markdown-it parser. | |
text | str | The text to be analyzed. |
Returns
| Name | Type | |
|---|---|---|
v_1 | bool | A flag. If it is True, the given text only contains one Markdown paragraph. |