fabrica

hanna/fabrica

fix(web): render markdown in follower/following list bios

d4c0f64 · hanna committed on 2026-07-26

The follow-card bios showed raw markdown; render them through
markdown::render like the profile sidebar, with tight margins.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed by hannaSSH key fingerprint: SHA256:4g9cWhkAAw8gwqhJUcVbSnGEvdGwklW+1Aa/fMUu59k
2 files changed · +7 −1UnifiedSplit
assets/base.css +6 −0
@@ -1782,6 +1782,12 @@ label.checkbox input {
1782 margin: 0.2rem 0 0;1782 margin: 0.2rem 0 0;
1783 font-size: 0.9em;1783 font-size: 0.9em;
1784}1784}
1785.user-row-bio > :first-child {
1786 margin-top: 0;
1787}
1788.user-row-bio > :last-child {
1789 margin-bottom: 0;
1790}
1785.user-row > .btn {1791.user-row > .btn {
1786 flex: none;1792 flex: none;
1787 align-self: center;1793 align-self: center;
crates/web/src/repo.rs +1 −1
@@ -515,7 +515,7 @@ async fn user_list(
515 " " span class="muted" { (u.username) }515 " " span class="muted" { (u.username) }
516 }516 }
517 @if let Some(bio) = non_empty(u.bio.as_ref()) {517 @if let Some(bio) = non_empty(u.bio.as_ref()) {
518 p class="user-row-bio muted" { (bio) }518 div class="user-row-bio muted markdown" { (markdown::render(bio)) }
519 }519 }
520 @if let Some(loc) = non_empty(u.location.as_ref()) {520 @if let Some(loc) = non_empty(u.location.as_ref()) {
521 p class="user-row-loc muted" { (icon(Icon::MapPin)) " " (loc) }521 p class="user-row-loc muted" { (icon(Icon::MapPin)) " " (loc) }