GRK-2023/render.py

7 lines
214 B
Python
Raw Permalink Normal View History

2023-01-15 19:33:53 +01:00
import os
rootdir = './'
for filename in os.listdir(rootdir):
if filename.endswith(".md"):
name = filename[:-3]
os.system(f'pandoc -s -o "{name}.html" "{name}.md" --mathjax --css style.css')