1
0

Compare commits

..

No commits in common. "44225724f2a93dd1f543b808611a1c87c0209e23" and "92b026815e14fc18aa76588eb2ea69851e44b6ea" have entirely different histories.

3 changed files with 6 additions and 11 deletions

View File

@ -3,10 +3,9 @@
import sys import sys
import markdown import markdown
from template import template from template import template
from pymdownx.superfences import SuperFencesCodeExtension
def main(): def main():
md = markdown.Markdown(extensions = ["meta", "extra", "toc", SuperFencesCodeExtension(preserve_tabs=True)]) md = markdown.Markdown(extensions = ["meta", "extra"])
with open(sys.argv[1], "r", encoding="utf-8") as file_in: with open(sys.argv[1], "r", encoding="utf-8") as file_in:
html = md.convert(file_in.read()) html = md.convert(file_in.read())
output = template(html, sys.argv[2], ".html", md.Meta) if "template" in md.Meta else html output = template(html, sys.argv[2], ".html", md.Meta) if "template" in md.Meta else html

View File

@ -172,11 +172,7 @@ div.block:first-of-type, div.block-small {
} }
pre { pre {
line-height: 1.5; white-space: pre-wrap;
font-size: 14px;
background-color: #EEEEEE;
padding: 6px;
overflow: auto;
} }
div.articles { div.articles {