diff options
author | Aleksey Kladov <[email protected]> | 2020-11-02 15:31:38 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-11-02 15:58:33 +0000 |
commit | ba8d6d1e4ea2590b31470171efc175b0301c5e1c (patch) | |
tree | 6304a61e803e5adf802abce8ae2d7066a2c5fef8 /crates/ide/src/markdown_remove.rs | |
parent | 731b38fa3c1694648e6c8e60f61820f9783343eb (diff) |
Remove more unreachable pubs
Diffstat (limited to 'crates/ide/src/markdown_remove.rs')
-rw-r--r-- | crates/ide/src/markdown_remove.rs | 3 |
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 | |||
3 | use pulldown_cmark::{Event, Parser, Tag}; | 2 | use 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 |
8 | pub fn remove_markdown(markdown: &str) -> String { | 7 | pub(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 | ||