patx/hglab
Add markdown links to profile bios, issue comments, and pr comments (fix backend bug)
Commit 3fb4df6d11e9 · Harrison Erd · 2026-05-03 23:41 -0400
Comments
No comments yet.
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)