Remove more unreachable pubs

This commit is contained in:
Aleksey Kladov 2020-11-02 16:31:38 +01:00
parent 731b38fa3c
commit ba8d6d1e4e
39 changed files with 114 additions and 121 deletions

View file

@ -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);