This commit is contained in:
2023-11-12 15:43:14 +07:00
parent a3632571ff
commit 0a5076f06c
27 changed files with 91 additions and 471 deletions

View File

@@ -49,7 +49,7 @@ export function useRichContent(content: string, textmode: boolean = false) {
let videos: string[] = [];
let events: string[] = [];
const text = content.replace(/\n\s*\n/g, '\n');
const text = content.replace(/\n+/g, '\n');
const words = text.split(/( |\n)/);
if (!textmode) {