Improve quote rendering

This commit is contained in:
Jon Staab
2024-12-05 15:32:27 -08:00
parent 14cd49caf3
commit 1e0cb93183
9 changed files with 74 additions and 35 deletions
+3 -3
View File
@@ -4,7 +4,7 @@
import {
parse,
truncate,
render as renderParsed,
renderAsHtml,
isText,
isTopic,
isCode,
@@ -146,10 +146,10 @@
</Link>
{/if}
{:else if isEllipsis(parsed) && expandInline}
{@html renderParsed(parsed)}
{@html renderAsHtml(parsed)}
<button type="button" class="text-sm underline"> Read more </button>
{:else}
{@html renderParsed(parsed)}
{@html renderAsHtml(parsed)}
{/if}
{/each}
</div>