mdka 2.1.8

A HTML to Markdown converter that balances conversion quality with runtime efficiency
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// tests/common.rs is compiled fresh into each integration-test binary that
// declares `mod common;`. Not every binary uses both helpers below, so each
// is individually dead code in whichever binaries only call the other one.
#![allow(dead_code)]

use mdka::options::ConversionOptions;

/// HTML を既定モードで Markdown に変換するテスト用ヘルパー。
pub fn conv(html: &str) -> String {
    mdka::html_to_markdown(html)
}

/// HTML を指定したオプションで Markdown に変換するテスト用ヘルパー。
pub fn conv_with(html: &str, opts: &ConversionOptions) -> String {
    mdka::html_to_markdown_with(html, opts)
}