forked from agap/md2doku
Mini translator of Markdown to Dokuwiki syntax.
- sed 100%
| LICENSE | ||
| md2doku | ||
| README.md | ||
md2doku
Copyright 2026 Gabriel Proença Alves
Mini translator of Markdown to Dokuwiki syntax.
Usage
After moved to a PATH directory of executable files, md2doku outputs the resulting conversion to stdout and can reads markdown content either by stdin or by file specified in arguments:
$ cat file.md | md2doku
Or
$ md2doku file.md
Supported markdown syntax
The md2doku accepts one variation of markdown as exemplified below:
______________________________________
| |
| *italic* or _italic_ |
| **bold** |
|______________________________________|
| |
| # header 1 |
| ## header 2 |
| (...) |
| ##### header 5 |
|______________________________________|
| |
| [Link](http://a.com) |
|  |
|______________________________________|
| |
| > Blockquote |
|______________________________________|
| |
| - list1 |
| - list2 |
| * list 2.1 |
| * list 2.2 |
|______________________________________|
| |
| 1. list 1 |
| 2. list 2 |
| 1) list2.1 |
| 2) list2.2 |
|______________________________________|
| |
| horizontal rule |
| --- or *** |
|______________________________________|
| |
| `inline code` |
| |
| (4 spaces) this is |
| (4 spaces) a indented |
| (4 spaces) code block |
|______________________________________|
Everything else of syntax has undefined behavior in this translator.