From 81f61afa9ff551c5e29f6fa1227e1c3c5456fef7 Mon Sep 17 00:00:00 2001 From: Robin van Dijk Date: Mon, 5 Oct 2020 19:52:24 +0200 Subject: [PATCH] add docstring --- crates/ide/src/markdown_remove.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/ide/src/markdown_remove.rs b/crates/ide/src/markdown_remove.rs index 62b2aa1e7ce..405d08d8e1b 100644 --- a/crates/ide/src/markdown_remove.rs +++ b/crates/ide/src/markdown_remove.rs @@ -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);