present is a tool that lets you interpolate the standard output of arbitrary scripts that get interpreted by the shell into your markdown documents.
Below is a short demo showcasing the main functionality of the program.
You can install present
with the rust package manager Cargo:
bash
$ cargo install present
Below is the standard output of present --help
, interpolated by the present
binary itself!
```present cargo run -- --help present 0.1.1 Interpolate the standard output of arbitrary shell scripts into your markdown files
USAGE: present [OPTIONS]
OPTIONS:
-h, --help Print help information
--in-place Modify documents in place.
--interactive Interactively present markdown documents.
--path
Below is the contents of a file called foo.md
. You can place commands at the
start of a fenced code block:
```` foo
present echo bar
````
These commands can then get interpreted by the shell by invoking the present
binary on foo.md
:
bash
$ present --in-place --path foo.md
The document gets modified in-place, with the commands stdout
interpolated
in-between the fenced code block:
```` foo
present echo bar
bar
````