#![allow(dead_code)]
pub mod cli;
pub mod conversion;
pub mod error;
pub mod formatter;
pub mod parser;
pub mod validation;
pub use conversion::{convert_json_to_toon, ConversionConfig, ConversionResult, ToonData};
pub use error::{ConversionError, ConversionErrorKind, ParseError};
pub use formatter::ToonFormatter;
pub use parser::JsonSource;
pub fn convert_json(json: &serde_json::Value) -> Result<String, ConversionError> {
let config = ConversionConfig::default();
convert_json_with_config(json, &config)
}
pub fn convert_json_with_config(
json: &serde_json::Value,
config: &ConversionConfig,
) -> Result<String, ConversionError> {
let result = convert_json_to_toon(json, config)?;
Ok(result.content)
}