Skip to content

Commit 7941c85

Browse files
committed
feat: render org bio as markdown
1 parent 04bcca3 commit 7941c85

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

lib/algora_web/live/org/home_live.ex

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,15 @@ defmodule AlgoraWeb.Org.HomeLive do
7171
<div class="flex-1 space-y-2">
7272
<div>
7373
<h1 class="text-2xl font-bold">{@org.name}</h1>
74-
<p class="mt-1 text-muted-foreground">{@org.bio}</p>
74+
<div
75+
class="mt-1 text-muted-foreground max-w-none whitespace-pre-line [&_p]:m-0 prose prose-invert"
76+
style="margin-top: -28px;"
77+
>
78+
{Phoenix.HTML.raw(Algora.Markdown.render(@org.bio))}
79+
</div>
7580
</div>
7681
77-
<div class="flex gap-4 items-center">
82+
<div class="flex gap-4 items-center" style="margin-top: -28px;">
7883
<%= for {platform, icon} <- social_links(),
7984
url = social_link(@org, platform),
8085
not is_nil(url) do %>

0 commit comments

Comments
 (0)