Add markdown links to profile bios, issue comments, and pr comments (fix backend bug)

Commit 3fb4df6d11e9 · Harrison Erd · 2026-05-03 23:41 -0400

Changeset
3fb4df6d11e9f7899c336e92bcbb0b546b3ada0c

View source at this commit

Comments

No comments yet.

Log in to comment

Diff

diff --git a/app.py b/app.py
--- a/app.py
+++ b/app.py
@@ -365,6 +365,7 @@
     context.setdefault("error", None)
     context.setdefault("notice", None)
     context.setdefault("render_markdown_links", render_markdown_links)
+    context.setdefault("render_repo_description", render_repo_description)
     return template(template_name, **context)
 
 
@@ -871,6 +872,10 @@
     ).strip()
 
 
+def render_repo_description(text):
+    return render_markdown_links(text)
+
+
 def commit_log(path, limit=50):
     template_arg = "{rev}\\x1f{node|short}\\x1f{author|person}\\x1f{date|isodate}\\x1f{desc|firstline}\\x1e"
     completed = run_hg(["log", "-l", str(limit), "--template", template_arg], cwd=path, check=False)