tpnote-html2md 0.3.9

HTML to Markdown converter library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
extern crate html2md;

use std::io::{self, Read};

fn main() {
    let stdin = io::stdin();
    let mut buffer = String::new();
    let mut handle = stdin.lock();

    handle
        .read_to_string(&mut buffer)
        .expect("Must be readable HTML!");
    println!("{}", html2md::parse_html(&buffer));
}