Writing a filter that will render markdown or highlight source code, the way GitHub does it, more or less. I find that my repos sometimes have "important" information in files other than README.md.
Gah, it sort of works. I don't want the line numbers., and it's wrapped in a pre tag, and a code tag (!?)... I guess I could fake it by adding extra closing and opening tags, and CSS to hide the line numbers? But I'm not liking this...
@kensanata Any reason why you use sys.stdout.write() and not just print()?
@kensanata Personally I like to use the fileinput module — it basically gives you what Perl has by default — standard input or passed files. https://docs.python.org/2/library/fileinput.html
@deshipu No reason except that’s what the existing code used. I wondered myself. Just for symmetry because of the sys.stdin code?