vault backup: 2025-12-22 22:49:13
All checks were successful
Deploy Quartz site to GitHub Pages / build (push) Successful in 2m8s
All checks were successful
Deploy Quartz site to GitHub Pages / build (push) Successful in 2m8s
This commit is contained in:
15
quiz/parse-markdown.py
Normal file
15
quiz/parse-markdown.py
Normal 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)
|
||||
Reference in New Issue
Block a user