Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 791 Bytes

test.md

File metadata and controls

33 lines (22 loc) · 791 Bytes

markmac

Embed program outputs in markdown

Let's say I have a markdown file README.md which looks like this:

# markmac

> Embed program outputs in markdown

Let's say I have a markdown file `README.md` which looks like this:

<!-- <macro exec="echo '```md' && cat README.md && echo '```'"> -->

<!-- </macro> -->

If I pipe it through `markmac`, the macro commands will be executed and their
STDOUT will be embedded between `<macro>` and `</macro>`.

```shell
cat README.md | markmac > README.md
<!-- </macro> -->

If I pipe it through `markmac`, the macro commands will be executed and their
STDOUT will be embedded between `<macro>` and `</macro>`.

```shell
cat README.md | markmac > README.md