diff --git a/src/shared/components/news.tsx b/src/shared/components/news.tsx index ed5e434..f5f9c99 100644 --- a/src/shared/components/news.tsx +++ b/src/shared/components/news.tsx @@ -36,6 +36,9 @@ function titleToUrl(title: string): string { function previewMarkdown(markdown: string): string { return markdown .replace(/#/g, "") + .split(/\n/g) + .slice(3) + .join("\n") .replace(/[\n\r]/g, " ") .slice(0, 100) .concat("...");