add doc describing limited capabilities

This commit is contained in:
Robin van Dijk 2020-10-06 16:34:09 +02:00
parent 81f61afa9f
commit bc890ed5b0

View File

@ -3,6 +3,8 @@
use pulldown_cmark::{Event, Parser};
/// Removes all markdown, keeping the text and code blocks
///
/// Currently limited in styling, i.e. no ascii tables or lists
pub fn remove_markdown(markdown: &str) -> String {
let mut out = String::new();
let parser = Parser::new(markdown);