Parcourir la source

markdown the quotes

Getty Ritter il y a 2 ans
Parent
commit
c040097c47
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  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]})