madfun 0.1.2

Autogenerate Atlassian Document Format (ADF) from Markdown
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use std::io::{self, BufRead, Read};

fn main() {
    let mut stdin = io::stdin().lock();

    let mut buf = String::new();
    stdin.read_to_string(&mut buf).unwrap();
    let adf = madfun::from_str(buf).unwrap();

    let mut stdout = io::stdout().lock();
    serde_json::to_writer_pretty(&mut stdout, &adf).unwrap();
}