I set up my blog on github originally, but since it missed server side service(PHP), so I have to buy a new stand-alone linux server to rebuild the blog system, I choice the dokuwiki this time. So I face to convert markdown to dokuwiki format. After a long time investigation, I found a solution, that's pandoc, it worked fine just one command:

pandoc -w dokuwiki test.md -o test.wik