md-tangle 0.1.4

A command line tool to tangle code blocks in markdown file to source code file.
md-tangle-0.1.4 is not a library.

md-tangle

Build Status

A command line tool to tangle code blocks in markdown file to source code file.

Getting Start

To build the program, nightly rust toolchain is needed.

rustup is the tool to help programmers install rust toolchains.

Then do:

rustup install nightly
cargo +nightly install md-tangle

usage

USAGE:
    md-tangle [FLAGS] [PATH]...

FLAGS:
    -r, --recursive    recursively traverse <DIR>
    -h, --help         Prints help information
    -V, --version      Prints version information

ARGS:
    <PATH>...    <PATH> can be <FILE> or <DIR>
                 ignore non unicode <PATH>
                 ignore non `.md` files
                 ignore `.md` files without tangle property

Example

In file engine.md

  • Add tangle property-line
---
tangle: lib.rs
---
  • The following code block will be tangled into lib.rs
  • For a complete example, see this directory where engine.md is tangled to lib.rs

Related Project