changeset 108:d95fcf75275a

Update generatehtml.py committer: GitHub <noreply@github.com>
author Paper <37962225+mrpapersonic@users.noreply.github.com>
date Wed, 26 Oct 2022 19:42:22 -0400
parents 96e5d721538f
children cbf293a787d3
files generatehtml.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/generatehtml.py	Tue Oct 18 19:23:05 2022 -0400
+++ b/generatehtml.py	Wed Oct 26 19:42:22 2022 -0400
@@ -3,6 +3,7 @@
 import os
 import sys
 import html
+import markdown
 
 title = "Blog - Paper's website"
 
@@ -49,7 +50,7 @@
         if lines[line][0:3] == "---":
             out_str += "		</div>\n	</div>\n"
             continue
-        out_str += """%s\n""" % html.escape(lines[line].strip())
+        out_str += """%s\n""" % markdown.markdown(lines[line].strip())
     out_str += "</body>"
     print(out_str, file=out)