1
0

vault backup: 2025-12-22 22:49:13
All checks were successful
Deploy Quartz site to GitHub Pages / build (push) Successful in 2m8s

This commit is contained in:
2025-12-22 22:49:13 +01:00
parent e1d880555f
commit 68079d368d
30 changed files with 244 additions and 149 deletions

15
quiz/parse-markdown.py Normal file
View File

@@ -0,0 +1,15 @@
import pathlib
import mistune
markdown = mistune.create_markdown(renderer=None)
root = pathlib.Path(__file__).parent.parent
exams = root / "content" / "Anatomi & Histologi 2" / "Gamla tentor"
print(exams.absolute())
for file in sorted(exams.glob("*/*.md")):
if len(file.stem) > 2:
continue
print(f"Parsing {file}")
tokens = markdown(file.read_text(encoding="utf-8"))
import pprint
pprint.pprint(tokens)