diff --git a/src/lib.rs b/src/lib.rs index a18401d..f40b4f9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2370,8 +2370,9 @@ pub mod config { wrap_links: self.wrap_links, } } - /// Parse with context. - pub(crate) fn do_parse(&self, input: R) -> Result { + + /// Reads and parses HTML from `input` and prepares a render tree. + pub fn do_parse(&self, input: R) -> Result { let doc = self.parse_html(input)?; self.dom_to_render_tree(&doc) } @@ -2660,11 +2661,6 @@ impl RenderedText { } } -/// Reads and parses HTML from `input` and prepares a render tree. -pub fn parse(input: impl io::Read) -> Result { - config::plain().do_parse(input) -} - /// Reads HTML from `input`, decorates it using `decorator`, and /// returns a `String` with text wrapped to `width` columns. pub fn from_read_with_decorator(input: R, width: usize, decorator: D) -> Result