aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ide/src')
-rw-r--r--crates/ide/src/markdown_remove.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/ide/src/markdown_remove.rs b/crates/ide/src/markdown_remove.rs
index 405d08d8e..ea12cf0fc 100644
--- a/crates/ide/src/markdown_remove.rs
+++ b/crates/ide/src/markdown_remove.rs
@@ -3,6 +3,8 @@
3use pulldown_cmark::{Event, Parser}; 3use pulldown_cmark::{Event, Parser};
4 4
5/// Removes all markdown, keeping the text and code blocks 5/// Removes all markdown, keeping the text and code blocks
6///
7/// Currently limited in styling, i.e. no ascii tables or lists
6pub fn remove_markdown(markdown: &str) -> String { 8pub fn remove_markdown(markdown: &str) -> String {
7 let mut out = String::new(); 9 let mut out = String::new();
8 let parser = Parser::new(markdown); 10 let parser = Parser::new(markdown);