I've got hundreds of personal notes stored as files in Markdown format, after several years using the VoodooPad personal wiki software for OS X.
There's plenty of information available for exporting from org mode to Markdown, but is there an easy way to convert Markdown to org mode format?
Update
Thanks to user2619203's answer and this answer to a question on batch processing of files with Pandoc I was able to convert four hundred Markdown files into org mode format in just a few minutes.
The solution was to export the VoodooPad document to a folder as text (File > Export Document > Export as Text...). Then call pandoc
via the find
command to convert them all in one go:
$ find . -name \*.txt -type f -exec pandoc -f markdown -t org -o {}.org {} \;
The converted .org files I've looked at are formatted beautifully -- even the codeblocks and format styling. Thank-you, user2619203.
To simply convert one file from Markdown to Org the following command can be used:
pandoc -f markdown -t org -o newfile.org original-file.markdown