mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
Remove more unreachable pubs
This commit is contained in:
parent
731b38fa3c
commit
ba8d6d1e4e
39 changed files with 114 additions and 121 deletions
|
@ -1,11 +1,10 @@
|
|||
//! Removes markdown from strings.
|
||||
|
||||
use pulldown_cmark::{Event, Parser, Tag};
|
||||
|
||||
/// Removes all markdown, keeping the text and code blocks
|
||||
///
|
||||
/// Currently limited in styling, i.e. no ascii tables or lists
|
||||
pub fn remove_markdown(markdown: &str) -> String {
|
||||
pub(crate) fn remove_markdown(markdown: &str) -> String {
|
||||
let mut out = String::new();
|
||||
let parser = Parser::new(markdown);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue