How could I convert a VimOutliner file to Markdown? In other words, I how to turn tab-indeted outlines like this...
Heading 1
Heading 2
Heading 3
: Body text is separated by colons.
: Another line of body text.
Heading 4
...into hash-style headings separated by an empty line like this:
# Heading 1
## Heading 2
### Heading 3
Body text.
## Heading 4
I have tried defining a macro but I'm fairly new to Vim (and not a coder) so I've been unsuccessful so far. Thanks for any help!
(PS -- As for Markdown, I do know about the awesome VOoM plugin but I still prefer doing initial outlines for documents with no hash-characters in sight. Plus, I also like the way VimOutliner highlights different levels of headings.)