瀏覽代碼

markdown the quotes

Getty Ritter 2 年之前
父節點
當前提交
c040097c47
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      main.py

+ 2 - 0
main.py

@@ -103,6 +103,7 @@ def main():
     quips = []
     for uuid in Path.list('quips'):
         q = Quip.from_file(Path.data('quips', uuid))
+        q.content = markdown.markdown(q.content)
         quips.append(q)
         with Path.write('quips', uuid, 'index.html') as f:
             f.write(Template.main({
@@ -129,6 +130,7 @@ def main():
     quotes = []
     for uuid in Path.list('quotes'):
         q = Quote.from_file(Path.data('quotes', uuid))
+        q.content = markdown.markdown(q.content)
         quotes.append(q)
         with Path.write('quotes', uuid, 'index.html') as f:
             contents = Template.quote({'quotelist': [q]})