markdown-tool 2.1.1

A CLI utility for converting Markdown into AST and vice versa
1
2
3
4
5
6
7
8
use anyhow::Result;
use std::io::Read;

pub fn read_input() -> Result<String> {
    let mut input = String::new();
    std::io::stdin().read_to_string(&mut input)?;
    Ok(input)
}