Render markdown text to plain text output without ANSI color codes or HTML tags.
markdown_text(text)
text (string) - Markdown text to renderString with plain text only (no ANSI codes or HTML formatting)
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)