Expand description
§markdown-strip
Reduce Markdown text to plain text. Conservative — keeps semantic content intact, drops only formatting markers. Intended for piping LLM output into TTS, keyword matching, or analytics.
Handles: ATX headers (# , ## …), bold/italic (**x**, *x*,
__x__, _x_), inline code (backtick spans), fenced code blocks,
links ([text](url) → text), images ( → alt),
blockquote markers (> ), and bullet/number list markers.
§Example
use markdown_strip::strip_markdown;
let md = "## Hello\n\n**bold** and *italic* with `code` and [a link](https://x).";
let plain = strip_markdown(md);
assert_eq!(plain, "Hello\n\nbold and italic with code and a link.");Functions§
- strip_
markdown - Strip Markdown formatting from
s.