Fiddling for fun

master
apromixately 2022-02-27 23:31:07 +01:00
parent 07652d9795
commit 6ea2963cf8
1 changed files with 13 additions and 0 deletions

13
pandoc.py 100644
View File

@ -0,0 +1,13 @@
import glob
import os
import subprocess
specials = ["footer", "todo"]
for filename in specials:
subprocess.run(f"pandoc {filename}.md > {filename}.html", shell=True)
for filename in glob.glob("*.md"):
filename = os.path.splitext(filename)[0]
if filename in specials:
continue
subprocess.run(f"pandoc --toc --css=github-pandoc.css -A footer.html --standalone {filename}.md > {filename}.html", shell=True)