1 unstable release

Uses old Rust 2015

0.1.0 Nov 20, 2017

#135 in #split

MIT license

7KB
120 lines

cargo-mdparse

Build Status

Split Rust code from Markdown for testing.

Usage

cargo-mdparse 

USAGE:
    cargo mdparse [FLAGS] <markdown_path>

FLAGS:
    -a, --anonymous    Parse anonymous code block
    -h, --help         Prints help information
    -V, --version      Prints version information

ARGS:
    <markdown_path>    Path to Markdown file

Named Rust code block (rust:test.rs) will be split out into exmaples/test.rs directory.

fn main() {
  println!("Split to examples/test.rs");
}

Anonymous block will be split out as examples/mdparse1.rs if --anonymous or -a flag is set.

fn main () {
  println!("1 + 1 = {}", 1 + 1);
}

Dependencies

~1.6–2.4MB
~53K SLoC