use sed to convert text to markdown?
Markdown will concatenate any concurrent lines of text that don't have two spaces after them. This is considered a "feature." Dokuwiki has a similar "feature."
I think that is about the only trick to converting text to markdown.
If I could make sure two spaces are appended to every line, and change the extension from .txt to .md, I could call my text files markdown.
Easy enough to do in vim. Just :%s/\s*$/ / - I think.
Could I convert a series of text files, to markdown, using sed?
|