add docstring

This commit is contained in:
Robin van Dijk 2020-10-05 19:52:24 +02:00
parent c3cc361294
commit 81f61afa9f

View File

@ -1,5 +1,8 @@
//! Removes markdown from strings.
use pulldown_cmark::{Event, Parser};
/// Removes all markdown, keeping the text and code blocks
pub fn remove_markdown(markdown: &str) -> String {
let mut out = String::new();
let parser = Parser::new(markdown);