From: Zachary Vance Date: Thu, 11 Jul 2024 23:23:01 +0000 (-0400) Subject: Add markdown, side-by-side view X-Git-Url: https://git.za3k.com/?a=commitdiff_plain;h=62bb5cf54c9831077fd46169d7f602bfe2b2564c;p=blog.git Add markdown, side-by-side view --- diff --git a/blog b/blog index 591d957..476f479 100755 --- a/blog +++ b/blog @@ -22,7 +22,7 @@ import chevron as mustache import collections import datetime import math -import collections +import markdown2 import os, os.path import re import subprocess @@ -107,6 +107,8 @@ def scale(i1, range1, range2): i2 = frac2 * (range2.stop - range2.start) + range2.start return i2 +md2html = markdown2.markdown + RELOAD_HTML = b"""