mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 03:33:59 +00:00
add docstring
This commit is contained in:
parent
c3cc361294
commit
81f61afa9f
@ -1,5 +1,8 @@
|
||||
//! Removes markdown from strings.
|
||||
|
||||
use pulldown_cmark::{Event, Parser};
|
||||
|
||||
/// Removes all markdown, keeping the text and code blocks
|
||||
pub fn remove_markdown(markdown: &str) -> String {
|
||||
let mut out = String::new();
|
||||
let parser = Parser::new(markdown);
|
||||
|
Loading…
Reference in New Issue
Block a user