SHell preprocessor for MarkDown
http://dlom.cc/projects/shmd
1fbd578186
(#5) Extra to remove <p> tags around <head> |
||
---|---|---|
examples | ||
extras | ||
.gitignore | ||
README.md | ||
build.sh | ||
shmd.c | ||
shmd.h | ||
util.c | ||
util.h |
README.md
SHell MarkDown
SHMD (Shell Markdown) is an extension to the popular Markdown markup language
The aim of this project is to allow for execution of shell-script logic in markdown files at compile time.
For compatability, and reduction of duplicated work, SHMD will be implemented as a pre-processor for markdown files, so that existing markdown converters continue to work. Converting a SHMD file to HTML may look something like this
$ shmd < myshellmarkdownfile.shmd | markdown > myhtmlfile.html
Features
- Execution of shell scripts can be achieved with the
$(...)
delimiter, in reference to a command substitution. - The addition of a header section, where elements in the HTML
<head>
tag can be populated, and SHMD functions can be declared. The contents of the header will be converted to HTML at compilation. - SHMD functions may be declared to simplify inlined scripts, for example to allow for succinct execution in other scripting languages.