aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/markdown_remove.rs
diff options
context:
space:
mode:
authorRobin van Dijk <[email protected]>2020-10-06 15:34:09 +0100
committerRobin van Dijk <[email protected]>2020-10-06 15:34:26 +0100
commitbc890ed5b0898445c998ec62fb89188afefb61ec (patch)
tree13dd4ededb482f21adbdd111094dcaee062a93ed /crates/ide/src/markdown_remove.rs
parent81f61afa9ff551c5e29f6fa1227e1c3c5456fef7 (diff)
add doc describing limited capabilities
Diffstat (limited to 'crates/ide/src/markdown_remove.rs')
-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);