Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Markdown2Dokuwiki - Reformat Markdown to Dokuwiki
#! /bin/sed -f
## Markdown2Dokuwiki - reformat Markdown to Dokuwiki
## Copyright (C) 2012 Matous J. Fialka, <http://mjf.cz/>
## Released under the terms of The MIT License
## TODO: many things yet...
# reformatovani nadpisu
s/^#####/==/
s/^####/===/
s/^###/====/
s/^##/=====/
s/^#/======/
# doplneni prave casti nadpisu
/^=/ {
s/^\(=\+\)\(.*\)/\1\2 \1/
}
# reformatovani cislovanych seznamu
s/^[ \t]*[0-9]\.[ \t]\+\(.*\)/ - \1/
@dryoo

This comment has been minimized.

Copy link

@dryoo dryoo commented Sep 8, 2015

Any progress??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.