Simple rust library and CLI to extract code blocks marked with triple backticks from markdown files into source files.
To download the latest release, please run either cargo install md2src
or brew install AlexanderWillner/tap/md2src
.
Run run md2src README.md
to create the source file named code_snippet_000.rs
from the following code:
rust
fn main() {
todo!();
}
```bash $ md2src --help md2src 1.0.1 Alexander Willner alex@willner.ws Markdown to source. Extracts code blocks marked with triple backticks into files.
USAGE:
md2src [OPTIONS]
FLAGS: -h, --help Prints help information -V, --version Prints version information
OPTIONS:
-e, --extension
ARGS: