flatiron 1.0.5

A parser and HTML renderer for the Textile markup language
Documentation
use flatiron::convert;
use std::io::{Read, Write};

fn main() {
    let mut textile = String::new();
    let mut stdin = std::io::stdin();
    if let Err(_) = stdin.read_to_string(&mut textile) {
        eprintln!("Something went wrong while reading stdin.")
    }
    let html = convert(textile);
    let mut stdout = std::io::stdout();

    let res = write!(stdout, "{}", html);
    if let Err(ref e) = res {
        if e.kind() != std::io::ErrorKind::BrokenPipe {
            res.unwrap();
        }
    }
}