projekt_grafika/cw 2/render.py

7 lines
200 B
Python
Raw Normal View History

2022-01-27 23:56:43 +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 --css style.css')