html-to-markdown-rs 3.5.0

High-performance HTML to Markdown converter using the astral-tl parser. Part of the Kreuzberg ecosystem.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Integration tests for serde round-trip of public enum types.

use html_to_markdown_rs::options::ConversionOptions;

#[test]
fn test_deserialize_highlight_bold_lowercase() {
    let json = r#"{"highlight_style":"bold"}"#;
    let result = serde_json::from_str::<ConversionOptions>(json);
    assert!(result.is_ok(), "Failed to deserialize: {:?}", result.err());
    if let Ok(opts) = result {
        assert_eq!(opts.highlight_style, html_to_markdown_rs::HighlightStyle::Bold);
    }
}