Enable table of contents extension
This commit is contained in:
parent
726d9418b9
commit
256566a141
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user