function isSimpleMarkdown
isSimpleMarkdown(text: string): boolean

True when text is markdown so simple it renders as nothing more than a single <p> of plain text — no bold, italic, links, lists, headings, code, blockquotes, tables, or multiple paragraphs. When this returns true the question can safely be used as the clickable label of its control; when false the question should be rendered as a prose block above the control.

Parameters

text: string

Return Type

boolean

Usage

import { isSimpleMarkdown } from "doc.ts";