From ce2a9a03deaaea1ceba26f8cf8ac3f5bd02647ad Mon Sep 17 00:00:00 2001 From: Johannes Reichhardt Date: Tue, 31 Mar 2026 23:54:00 -0500 Subject: [PATCH] Bump to v1.0.8: Add raw Markdown source view with emojis and update deployment version. --- app.py | 10 ++++++++-- k8s/deployment.yaml | 2 +- templates/index.html | 5 ++++- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/app.py b/app.py index 2e4cd0e..4c9ab69 100644 --- a/app.py +++ b/app.py @@ -11,7 +11,7 @@ app = Flask(__name__) app.secret_key = os.environ.get("FLASK_SECRET_KEY", "prod-secret-7721") metrics = PrometheusMetrics(app) -metrics.info('app_info', 'Application info', version='1.0.6') +metrics.info('app_info', 'Application info', version='1.0.8') conversion_counter = metrics.counter( 'txt2md_conversions_total', 'Total number of text conversions' @@ -38,6 +38,7 @@ else: @app.route("/", methods=["GET", "POST"]) def index(): converted_html = None + markdown_content = "" original_text = "" if request.method == "POST": @@ -63,7 +64,12 @@ def index(): except Exception as e: flash(f"Error during processing: {str(e)}", "error") - return render_template("index.html", original_text=original_text, converted_html=converted_html) + return render_template( + "index.html", + original_text=original_text, + converted_html=converted_html, + markdown_content=markdown_content + ) if __name__ == "__main__": debug_mode = os.environ.get("FLASK_DEBUG", "False").lower() == "true" diff --git a/k8s/deployment.yaml b/k8s/deployment.yaml index 4ff784b..afbf7c6 100644 --- a/k8s/deployment.yaml +++ b/k8s/deployment.yaml @@ -70,7 +70,7 @@ spec: serviceAccountName: txt2md-sa containers: - name: txt2md - image: europe-west3-docker.pkg.dev/project-84ddd43d-e408-4cb9-8cb/txt2md-repo/txt2md:v1.0.6 + image: europe-west3-docker.pkg.dev/project-84ddd43d-e408-4cb9-8cb/txt2md-repo/txt2md:v1.0.8 ports: - containerPort: 5000 env: diff --git a/templates/index.html b/templates/index.html index fd817f3..0dd6d5d 100644 --- a/templates/index.html +++ b/templates/index.html @@ -33,7 +33,10 @@
-

Formatted Output

+

Markdown Output

+ + +

Formatted Preview

{% if converted_html %} {{ converted_html | safe }}