1
0
Files
medical-notes/static.py
Johan Dahlin fb75fc04a6
All checks were successful
Deploy Quartz site to GitHub Pages / build (push) Successful in 1m25s
vault backup: 2025-12-05 23:52:33
2025-12-05 23:52:33 +01:00

26 lines
469 B
Python

from obsidian_parser import Vault
import markdown
v = Vault("content")
note = v.get_note("Biokemi/Cellulära processer/Transport över cellmembran/Anteckningar.md")
body = markdown.markdown(note.reading_view)
html = f"""<!html>
<head>
<meta charset="utf-8">
<style>
p {{
white-space: pre-wrap;
}}
</style>
</head>
<body>
{body}
</body>
</html>
"""
with open("test.html", "w") as f:
f.write(html)
import webbrowser
webbrowser.open("test.html")