1 个不稳定版本
使用旧的 Rust 2015
| 0.1.0 | 2017年11月20日 |
|---|
#39 in #匿名
7KB
120 代码行
cargo-mdparse
用于测试,从 Markdown 中分离 Rust 代码。
用法
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
命名 Rust 代码块(rust:test.rs)将被分离到 examples/test.rs 目录。
fn main() {
println!("Split to examples/test.rs");
}
匿名块将在设置 --anonymous 或 -a 标志时作为 examples/mdparse1.rs 分离。
fn main () {
println!("1 + 1 = {}", 1 + 1);
}
依赖项
~1.8–2.7MB
~52K SLoC