diff --git a/app/app.py b/app/app.py index 099bc73..82cf16f 100644 --- a/app/app.py +++ b/app/app.py @@ -47,12 +47,12 @@ def get_posts(category_filter : str | None = None) -> list[Post]: return reversed(ordered_posts) def get_status() -> str: - with open(STATUS_FILE, 'r') as file: + with open(STATUS_FILE, 'r', encoding='utf-8') as file: statuses = file.readlines() status = random.randint(0, len(statuses) - 1) - return statuses[status] + return markdown.markdown(statuses[status]) @app.route('/') def index():