Crates.io | cargo-mdparse |
lib.rs | cargo-mdparse |
version | 0.1.0 |
source | src |
created_at | 2017-11-20 06:01:41.992634 |
updated_at | 2017-11-20 06:01:41.992634 |
description | Split out Rust code from Markdown |
homepage | |
repository | https://github.com/termoshtt/cargo-mdparse |
max_upload_size | |
id | 39990 |
size | 7,884 |
Split Rust code from Markdown for testing.
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);
}