flatiron 1.0.5

A parser and HTML renderer for the Textile markup language
Documentation
use flatiron::convert;
use std::fs;

#[test]
fn example() {
    let textile = String::from("h1. Is this thing on?");
    let html = convert(textile);
    assert_eq!(html, String::from("<h1>Is this thing on?</h1>\n"));
}

#[test]
fn textism() {
    let textile = fs::read_to_string("samples/textism.textile")
        .expect("Something went wrong while reading the textile file");
    let target_html = fs::read_to_string("tests/html/textism.html")
        .expect("Something went wrong while reading the HTML file");

    let html = convert(textile);
    assert_eq!(target_html, html)
}