drafting.text.richtext.RichText

class RichText(rect, text, render_text_fn: Union[dict, Callable[[str, List[str]], Tuple[str, drafting.text.reader.Style]]], fit=None, graf_style=<drafting.text.composer.GrafStyle object>, tag_delimiters=['[', ']'], visible_boundaries=[' '], invisible_boundaries=[], union_styles=True, blankfill='¶', strip=True, strip_lines=False)

Very experimental module to support rich-text from annotated strings, like a super-minimal-but-open-ended subset of markdown, inspired by the way rich text is built up in the time.nle.premiere DPS subclass in coldtype