cmark2tex 0.3.0-beta.1

A small utility to convert markdown files to pdf exploiting tectonic. This is a forked version based off of tforgione's awesome library (https://gitea.tforgione.fr/tforgione/md2pdf/).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[derive(thiserror::Error, Debug)]
pub enum Error {
    #[error(transparent)]
    Io(#[from] std::io::Error),

    #[error(transparent)]
    Svg(#[from] resvg::usvg::Error),

    #[error(transparent)]
    PngEnc(#[from] png::EncodingError),

    #[error("Missing argument, must provide input + output")]
    MissingArg,
}

pub type Result<T> = std::result::Result<T, Error>;