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 {
17821782 margin: 0.2rem 0 0;
17831783 font-size: 0.9em;
17841784 }
1785+.user-row-bio > :first-child {
1786+ margin-top: 0;
1787+}
1788+.user-row-bio > :last-child {
1789+ margin-bottom: 0;
1790+}
17851791 .user-row > .btn {
17861792 flex: none;
17871793 align-self: center;
crates/web/src/repo.rs +1 −1
@@ -515,7 +515,7 @@ async fn user_list(
515515 " " span class="muted" { (u.username) }
516516 }
517517 @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)) }
519519 }
520520 @if let Some(loc) = non_empty(u.location.as_ref()) {
521521 p class="user-row-loc muted" { (icon(Icon::MapPin)) " " (loc) }