From 256566a141da106d73665239a726e9653f9af525 Mon Sep 17 00:00:00 2001 From: Ryan Fox Date: Tue, 30 Mar 2021 01:32:35 +0000 Subject: [PATCH] Enable table of contents extension --- scripts/template_md.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/template_md.py b/scripts/template_md.py index d78a875..153aca8 100755 --- a/scripts/template_md.py +++ b/scripts/template_md.py @@ -5,7 +5,7 @@ import markdown from template import template def main(): - md = markdown.Markdown(extensions = ["meta", "extra"]) + md = markdown.Markdown(extensions = ["meta", "extra", "toc"]) with open(sys.argv[1], "r", encoding="utf-8") as file_in: html = md.convert(file_in.read()) output = template(html, sys.argv[2], ".html", md.Meta) if "template" in md.Meta else html