pub fn convert_with(html: &str, options: &Options) -> StringExpand description
Convert an HTML string to Markdown with custom options.
ยงExamples
use html2markdown::{convert_with, Options, HeadingStyle};
let options = Options::new().with_heading_style(HeadingStyle::Setext);
let md = convert_with("<h1>Hello</h1>", &options);
assert!(md.contains("Hello"));