quilldown 1.5.0

Convert GitHub-Flavored Markdown into high-fidelity Word .docx documents.
Documentation
// <auto-generated by typra-emitter>
// Code generated by Typra emitter; DO NOT EDIT.

#![allow(
    unused_imports,
    dead_code,
    non_camel_case_types,
    unused_variables,
    unexpected_cfgs,
    clippy::all
)]

use quilldown::typra_spec::context::{LoadContext, SaveContext};
use quilldown::typra_spec::Inline;

#[test]
fn test_inline_load_json() {
    let json = r####"
{
  "kind": "text",
  "data": "sample"
}
"####;
    let ctx = LoadContext::default();
    let result = Inline::from_json(json, &ctx);
    assert!(
        result.is_ok(),
        "Failed to load from JSON: {:?}",
        result.err()
    );
}

#[test]
fn test_inline_load_yaml() {
    let yaml = r####"
kind: text
data: sample

"####;
    let ctx = LoadContext::default();
    let result = Inline::from_yaml(yaml, &ctx);
    assert!(
        result.is_ok(),
        "Failed to load from YAML: {:?}",
        result.err()
    );
}

#[test]
fn test_inline_roundtrip() {
    let json = r####"
{
  "kind": "text",
  "data": "sample"
}
"####;
    let load_ctx = LoadContext::default();
    let result = Inline::from_json(json, &load_ctx);
    assert!(result.is_ok(), "Failed to load: {:?}", result.err());
}