#![allow(
dead_code,
reason = "helpers selectively used by different test crates"
)]
use h2m::{Converter, Options};
pub(crate) fn with_options(opts: Options) -> Converter {
Converter::builder()
.options(opts)
.use_plugin(&h2m::rules::CommonMark)
.build()
}
pub(crate) fn with_domain(domain: &str) -> Converter {
Converter::builder()
.use_plugin(&h2m::rules::CommonMark)
.domain(domain)
.build()
}
pub(crate) fn ref_converter(style: h2m::LinkReferenceStyle) -> Converter {
let opts = Options::default()
.with_link_style(h2m::LinkStyle::Referenced)
.with_link_reference_style(style);
with_options(opts)
}