aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/markdown_remove.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-11-02 15:31:38 +0000
committerAleksey Kladov <[email protected]>2020-11-02 15:58:33 +0000
commitba8d6d1e4ea2590b31470171efc175b0301c5e1c (patch)
tree6304a61e803e5adf802abce8ae2d7066a2c5fef8 /crates/ide/src/markdown_remove.rs
parent731b38fa3c1694648e6c8e60f61820f9783343eb (diff)
Remove more unreachable pubs
Diffstat (limited to 'crates/ide/src/markdown_remove.rs')
-rw-r--r--crates/ide/src/markdown_remove.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/ide/src/markdown_remove.rs b/crates/ide/src/markdown_remove.rs
index 02ad39dfb..3ec5c629e 100644
--- a/crates/ide/src/markdown_remove.rs
+++ b/crates/ide/src/markdown_remove.rs
@@ -1,11 +1,10 @@
1//! Removes markdown from strings. 1//! Removes markdown from strings.
2
3use pulldown_cmark::{Event, Parser, Tag}; 2use pulldown_cmark::{Event, Parser, Tag};
4 3
5/// Removes all markdown, keeping the text and code blocks 4/// Removes all markdown, keeping the text and code blocks
6/// 5///
7/// Currently limited in styling, i.e. no ascii tables or lists 6/// Currently limited in styling, i.e. no ascii tables or lists
8pub fn remove_markdown(markdown: &str) -> String { 7pub(crate) fn remove_markdown(markdown: &str) -> String {
9 let mut out = String::new(); 8 let mut out = String::new();
10 let parser = Parser::new(markdown); 9 let parser = Parser::new(markdown);
11 10