Skip to content

Commit 81f61af

Browse files
committed
add docstring
1 parent c3cc361 commit 81f61af

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crates/ide/src/markdown_remove.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
//! Removes markdown from strings.
2+
13
use pulldown_cmark::{Event, Parser};
24

5+
/// Removes all markdown, keeping the text and code blocks
36
pub fn remove_markdown(markdown: &str) -> String {
47
let mut out = String::new();
58
let parser = Parser::new(markdown);

0 commit comments

Comments
 (0)