aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
Diffstat (limited to 'crates')
-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);