> Markdown macros - embed program outputs in markdown
npm install markmac> Markdown macros - embed program outputs in markdown
Let's say I have a markdown file test.md which looks like this:
``testHello, World
This is _just markdown_.
`
If I pipe it through markmac, the macro commands will be executed and their
STDOUT will be embedded between and .
`console
$ cat test.md | markmacHello, World
This is _just markdown_.
10/07/2020
15:48
`
markmac searches for the directives inside your markdown file,exec
executes the command in and substitutes the contents between
and with STDOUT.
This program is distributed via npm, so it can be installed through yarn ornpm or any other supporting client:
`shell``
npm i -g markmac