Skip to content

Commit 9a5f686

Browse files
committed
fix: improve markdown rendering
1 parent 7941c85 commit 9a5f686

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

assets/tailwind.config.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,16 @@ module.exports = {
131131
"accordion-up": "accordion-up 0.2s ease-out",
132132
rotate: "rotate 10s linear infinite",
133133
},
134+
typography: {
135+
DEFAULT: {
136+
css: {
137+
"code::before": false,
138+
"code::after": false,
139+
"blockquote p:first-of-type::before": false,
140+
"blockquote p:last-of-type::after": false,
141+
},
142+
},
143+
},
134144
},
135145
},
136146
plugins: [

lib/algora_web/live/org/home_live.ex

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,12 @@ 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-
<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-
>
74+
<div class="mt-1 text-muted-foreground max-w-none prose prose-invert">
7875
{Phoenix.HTML.raw(Algora.Markdown.render(@org.bio))}
7976
</div>
8077
</div>
8178
82-
<div class="flex gap-4 items-center" style="margin-top: -28px;">
79+
<div class="flex gap-4 items-center">
8380
<%= for {platform, icon} <- social_links(),
8481
url = social_link(@org, platform),
8582
not is_nil(url) do %>

0 commit comments

Comments
 (0)