]> git.lizzy.rs Git - rust.git/commitdiff
add docstring
authorRobin van Dijk <robin@robinjint.nl>
Mon, 5 Oct 2020 17:52:24 +0000 (19:52 +0200)
committerRobin van Dijk <robin@robinjint.nl>
Mon, 5 Oct 2020 18:06:25 +0000 (20:06 +0200)
crates/ide/src/markdown_remove.rs

index 62b2aa1e7ce5fa9a73cb477f4875b100c735a6ca..405d08d8e1b84d89a69759d9fbcf8613252b59d9 100644 (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);