cargo-mdparse

Crates.iocargo-mdparse
lib.rscargo-mdparse
version0.1.0
sourcesrc
created_at2017-11-20 06:01:41.992634
updated_at2017-11-20 06:01:41.992634
descriptionSplit out Rust code from Markdown
homepage
repositoryhttps://github.com/termoshtt/cargo-mdparse
max_upload_size
id39990
size7,884
Toshiki Teramura (termoshtt)

documentation

https://docs.rs/cargo-mdparse/

README

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);
}
Commit count: 26

cargo fmt