Browse Source

markdown the quotes

Getty Ritter 1 year ago
parent
commit
c040097c47
1 changed files with 2 additions and 0 deletions
  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]})