gdritter repos lib-static / master bin / pretty-quote
master

Tree @master (Download .tar.gz)

pretty-quote @master

6c3731f
 
 
 
 
 
 
 
 
 
 
 
 
#!/bin/python2

import json
import markdown
import sys

o = json.loads(sys.stdin.read())
for l in o:
    l['content'] = markdown.markdown(l['content'])
    if 'author' in l:
        l['author'] = markdown.markdown('—'+l['author'])
sys.stdout.write(json.dumps(o))
sys.stdout.write('\n')