aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src
diff options
context:
space:
mode:
authorRobin van Dijk <[email protected]>2020-10-05 18:52:24 +0100
committerRobin van Dijk <[email protected]>2020-10-05 19:06:25 +0100
commit81f61afa9ff551c5e29f6fa1227e1c3c5456fef7 (patch)
treec6eab796ec21967b507f4728c73030c3fe941fbf /crates/ide/src
parentc3cc3612948be235577ccfd55990062829c8cfbb (diff)
add docstring
Diffstat (limited to 'crates/ide/src')
-rw-r--r--crates/ide/src/markdown_remove.rs3
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
1use pulldown_cmark::{Event, Parser}; 3use pulldown_cmark::{Event, Parser};
2 4
5/// Removes all markdown, keeping the text and code blocks
3pub fn remove_markdown(markdown: &str) -> String { 6pub 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);