fix(NoBulletPoints): regex (#738)

makes the regex a little more loose so it doesnt consider bolded words to be bullet points
This commit is contained in:
Key 2026-02-07 01:40:10 +00:00 • committed by GitHub
parent 227ff79508
commit c9388a94c1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -16,5 +16,5 @@ export default definePlugin({
});
function textProcessing(text: string): string {
return text.replace(/([*-]) /g, "\\$1 ");
return text.replace(/(^|\n)(\s*)([*+-])\s+/g, "$1$2\\$3 ");
}