Skip to content

Instantly share code, notes, and snippets.

@fennecdjay
Last active March 11, 2019 21:19
Show Gist options
  • Save fennecdjay/9f381041f34f90ba54b4c9a436d0b5a0 to your computer and use it in GitHub Desktop.
Save fennecdjay/9f381041f34f90ba54b4c9a436d0b5a0 to your computer and use it in GitHub Desktop.
Mdr in a Nutshell

MDR in a nutshell

MDR is intented (but not limited) to be a markdown preprocessor.

It only supports a few commands

Snippet/Code

Define a piece of code

  • you'll later include somwhere
  • that you want written in a file
@``` file.sh
echo "hello, MDR!"
@```

@``` parttoinclude
this will be included somewhere later
@```

Comments

you can comment an action by prefixing '@' to it.

@@exec ls

will lend

@exec ls

Include

use @[[parttoinclude]], and you'll get

use this will be included somewhere later, and you'll get

Commands

you'll get commands executed by the shell using '@exec' for instance

@exec "Try me"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment