All checks were successful
Deploy Quartz site to GitHub Pages / build (push) Successful in 1m25s
26 lines
469 B
Python
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")
|