NOW WORKING ON: https://github.com/cympfh/unidoc
Markdown + some special syntax
mdc < in.md > out.md
mdc < in.md | pandoc -o out.html
You can embed the content of another file.
If the file is markdown (.md
, .mkd
), the content will be embbed after compiled with mdc
(please see tests/include-nest/actual.md
).
@(filepath)
replaces the content of the file.
@(section1.md)
makes
(content of section1.md)
@[filetype](filepath)
@[ruby](example.rb)
makes
```ruby (content of example.rb) ```
graphviz (dot) is a tool which make graph (nodes and edges) images.
mdc
calls dot
and makes svg images when
```dot ... ... ```
snippet found.
```dot digraph { P -> {X Y}; Z -> {X Y}; Z -> P [style=dashed]; } ```
requires gnuplot
and svg
terminal.
```gnuplot ... ... ```
```gnuplot plot sin(x) ```
The line which begins with <
(leftangle-space) will be interpreted as shell (bash) code, and executed.
< system command
This document was compiled at
< LANG=en date
.
10 count:
< seq 1 10 | tr '\n' ' '
[[URL]]
makes
[HTML-Title](URL)
if HTML-Title
can be fetched successfully,
else
[URL](URL)
{{URL}}