Skip to main content

rewrite_html_stream_custom_with_url

Function rewrite_html_stream_custom_with_url 

Source
pub async fn rewrite_html_stream_custom_with_url<S, B, E>(
    stream: S,
    custom: &Option<HashSet<String>>,
    commonmark: bool,
    url: &Option<Url>,
) -> Result<String, StreamConvertError<E>>
where S: Stream<Item = Result<B, E>> + Unpin, B: AsRef<[u8]>,
Expand description

Convert an async stream of HTML byte chunks into markdown with custom options.

ยงArguments

  • stream - an async stream of byte chunks
  • custom - custom tag handler producers for tags to ignore
  • commonmark - adjust output to CommonMark spec
  • url - base URL for resolving relative links