pub fn parse_html_custom_with_url(
html: &str,
custom: &HashMap<String, Box<dyn TagHandlerFactory>>,
commonmark: bool,
url: &Option<Url>,
) -> StringExpand description
Custom variant of main function. Allows to pass custom tag<->tag factory pairs in order to register custom tag hadler for tags you want.
You can also override standard tag handlers this way
ยงArguments
html is source HTML as String
custom is custom tag hadler producers for tags you want, can be empty
commonmark is for adjusting markdown output to commonmark
url is used to provide absolute url handling