import fixes

This commit is contained in:
Oscar Krause 2024-06-13 19:24:46 +02:00
parent c45aa1a2a8
commit 6473655e57

View File

@ -108,7 +108,7 @@ async def _config():
@app.get('/-/readme', summary='* Readme')
async def _readme():
from markdown import markdown
content = load_file('../README.md').decode('utf-8')
content = load_file(join(dirname(__file__), '../README.md')).decode('utf-8')
return HTMLr(markdown(text=content, extensions=['tables', 'fenced_code', 'md_in_html', 'nl2br', 'toc']))