markdown_text()

Render markdown text to plain text output without ANSI color codes or HTML tags.

Signature

markdown_text(text)

Parameters

Returns

String with plain text only (no ANSI codes or HTML formatting)

Examples

Basic markdown to plain text:

md = "# Title\n\nSome **bold** text and `code` examples"
output = markdown_text(md)
print(output)

// prints:
// Title
//
// Some bold text and code examples

Render documentation as plain text:

docs = doc("split")
plain = markdown_text(docs)
print(plain)

See Also