use tform::{Config, Formatter};
fn main() -> Result<(), Box<dyn std::error::Error>> {
let config = Config::default();
let formatter = Formatter::new(config);
let input_text = r#"
# My Title
Some paragraph text with extra spaces or random
newlines. Some random newlines wit
hin the middle of words!
- item one
- item two
- item three
"#;
let markdown_output = formatter.format_to_markdown(input_text.as_bytes())?;
println!("=== Markdown Output ===\n{}", markdown_output);
let html_output = formatter.format_to_html(input_text.as_bytes())?;
println!("=== HTML Output ===\n{}", html_output);
Ok(())
}