diff options
author | Robin van Dijk <[email protected]> | 2020-10-05 18:52:24 +0100 |
---|---|---|
committer | Robin van Dijk <[email protected]> | 2020-10-05 19:06:25 +0100 |
commit | 81f61afa9ff551c5e29f6fa1227e1c3c5456fef7 (patch) | |
tree | c6eab796ec21967b507f4728c73030c3fe941fbf /crates/ide/src | |
parent | c3cc3612948be235577ccfd55990062829c8cfbb (diff) |
add docstring
Diffstat (limited to 'crates/ide/src')
-rw-r--r-- | crates/ide/src/markdown_remove.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/ide/src/markdown_remove.rs b/crates/ide/src/markdown_remove.rs index 62b2aa1e7..405d08d8e 100644 --- a/crates/ide/src/markdown_remove.rs +++ b/crates/ide/src/markdown_remove.rs | |||
@@ -1,5 +1,8 @@ | |||
1 | //! Removes markdown from strings. | ||
2 | |||
1 | use pulldown_cmark::{Event, Parser}; | 3 | use pulldown_cmark::{Event, Parser}; |
2 | 4 | ||
5 | /// Removes all markdown, keeping the text and code blocks | ||
3 | pub fn remove_markdown(markdown: &str) -> String { | 6 | pub fn remove_markdown(markdown: &str) -> String { |
4 | let mut out = String::new(); | 7 | let mut out = String::new(); |
5 | let parser = Parser::new(markdown); | 8 | let parser = Parser::new(markdown); |