Mini translator of Markdown to Dokuwiki syntax.
Find a file
agap c8ebc00c2d Port code to posix standards
This is for issue #1
2026-02-02 21:41:41 -03:00
LICENSE Initial commit 2026-01-13 03:40:15 +01:00
md2doku Port code to posix standards 2026-02-02 21:41:41 -03:00
README.md Update README.md 2026-01-25 17:20:07 +01:00

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)             |
|     ![media](http://url/a.png)       |
|______________________________________|
|                                      |
|     > 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.