fix count

This commit is contained in:
NilsUeter
2025-04-18 11:56:22 +02:00
parent 8a7cbf7f14
commit d197a804ca
2 changed files with 41 additions and 7 deletions
+4
View File
@@ -1239,6 +1239,10 @@ const makeKeywordsBold = (text) => {
);
}
}
// replace words wrapped in ^^ ^^ with <strong> tags
newValue = newValue.replace(/\^\^([^\^]+)\^\^/g, "<strong>$1</strong>");
// replace two newlines with one but only if there are two newlines in a row
return newValue.replace(/\n\n+/g, "\n\n");
};