misc: slice body text

This commit is contained in:
Xylight committed 2024-08-02 16:55:48 -07:00
1 parent c7570840dd
commit 08fa42b329
3 files changed
+5 -3

No files matched your search

@@ -36,7 +36,7 @@ ${view == 'list' ? `max-h-24` : 'max-h-48'}`
class:pointer-events-none={!clickThrough}
bind:this={element}
>
<Markdown inline={!expanded} source={body} />
<Markdown inline={!expanded} source={expanded ? body : body.slice(0, 1000)} />
{#if overflows}
<Button
on:click={() => (expanded = !expanded)}
+3 -1
View File
@@ -22,7 +22,9 @@
marked.setOptions({
pedantic: false,
// @ts-ignore
mangle: false,
// @ts-ignore
headerIds: false,
})
@@ -62,7 +64,7 @@
tablerow: MdTableRow,
}
export const options = {
export const options: any = {
mangle: false,
headerIds: false,
}