1 unstable release
Uses old Rust 2015
0.1.0 | Nov 20, 2017 |
---|
#42 in #anonymous
7KB
120 lines
cargo-mdparse
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
~2.8–4MB
~73K SLoC