https://github.com/termoshtt/cargo-mdparse
Split Rust source code from README for testing
https://github.com/termoshtt/cargo-mdparse
cargo-subcommand markdown
Last synced: 11 months ago
JSON representation
Split Rust source code from README for testing
- Host: GitHub
- URL: https://github.com/termoshtt/cargo-mdparse
- Owner: termoshtt
- License: mit
- Created: 2017-11-20T05:30:52.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2021-05-17T04:05:10.000Z (over 4 years ago)
- Last Synced: 2025-02-08T06:45:40.511Z (11 months ago)
- Topics: cargo-subcommand, markdown
- Language: Rust
- Size: 15.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
cargo-mdparse
==============
[](https://crates.io/crates/cargo-mdparse)
Split Rust code from Markdown for testing.
Usage
------
```
cargo-mdparse
USAGE:
cargo mdparse [FLAGS]
FLAGS:
-a, --anonymous Parse anonymous code block
-h, --help Prints help information
-V, --version Prints version information
ARGS:
Path to Markdown file
```
Named Rust code block (`rust:test.rs`) will be split out into `exmaples/test.rs` directory.
```rust:test.rs
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.
```rust
fn main () {
println!("1 + 1 = {}", 1 + 1);
}
```