remark-unixpipe
v0.1.3
Published
Allow UNIX pipes in Markdown
Downloads
6
Readme
remark-unixpipe
remark-unixpipe will, for a Code Block with the lang
"unixpipe", pipe it's body through the command specified in it's meta
.
tree
This means the following code:
```unixpipe env NAME="World" ./res/draw_graphviz res/hello_world.png "Hello World"
digraph G {
"Hello" -> "$NAME"
}
```
Results in:
When the contents of draw_graphviz
is:
#!/bin/bash
cat /dev/stdin | envsubst | dot -Tpng > "$1"
echo "![$2]($1)"
Options
Please see test.js for examples of options.
Notes
This documentation was generated by running cat README.src.md | node ./test.js > README.md
Created by @forbesmyester License MIT