Détail du package

markmac

eladb2.1kApache-2.00.1.659

Markdown macros - embed program outputs in markdown

readme

markmac

Markdown macros - embed program outputs in markdown

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

# Hello, World

This is _just markdown_.

## Current date is:

<!-- <macro exec="date +%x"> -->
<!-- </macro> -->

## Current time is:

<!-- <macro exec="date +%R"> -->
<!-- </macro> -->

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

$ cat test.md | markmac
# Hello, World

This is _just markdown_.

## Current date is:

<!-- <macro exec="date +%x"> -->
10/07/2020
<!-- </macro> -->

## Current time is:

<!-- <macro exec="date +%R"> -->
15:48
<!-- </macro> -->

markmac searches for the <macro> directives inside your markdown file, executes the command in exec and substitutes the contents between <macro> and </macro> with STDOUT.

Installation

This program is distributed via npm, so it can be installed through yarn or npm or any other supporting client:

npm i -g markmac

License

Apache 2.0

changelog

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

0.1.37 (2020-12-30)

0.1.36 (2020-12-29)

0.1.35 (2020-12-24)

0.1.34 (2020-12-22)

0.1.33 (2020-12-21)

0.1.32 (2020-12-15)

0.1.31 (2020-12-14)

0.1.30 (2020-12-11)

0.1.29 (2020-12-09)

0.1.28 (2020-12-08)

0.1.27 (2020-12-07)

0.1.26 (2020-12-02)

0.1.25 (2020-12-01)

0.1.24 (2020-11-26)

0.1.23 (2020-11-24)

0.1.22 (2020-11-23)

0.1.21 (2020-11-20)

0.1.20 (2020-11-18)

0.1.19 (2020-11-18)

0.1.18 (2020-11-17)

0.1.17 (2020-11-10)

0.1.16 (2020-11-09)

0.1.15 (2020-11-04)

0.1.14 (2020-11-03)

0.1.13 (2020-10-29)

0.1.12 (2020-10-27)

0.1.11 (2020-10-26)

0.1.10 (2020-10-26)

0.1.9 (2020-10-22)

0.1.8 (2020-10-21)

0.1.7 (2020-10-20)

0.1.6 (2020-10-19)

0.1.5 (2020-10-13)

0.1.4 (2020-10-09)

0.1.3 (2020-10-07)

Bug Fixes

0.1.2 (2020-10-07)

0.1.1 (2020-10-07)

0.0.2 (2020-10-07)

0.0.1 (2020-10-07)