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:
parent
227ff79508
commit
c9388a94c1
1 changed files with 1 additions and 1 deletions
|
|
@ -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 ");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue