Escape more characters for markdown

This commit is contained in:
Liam 2025-01-25 12:09:33 -05:00
parent 3c7c1e1ec1
commit 39d1eb6dee

View file

@ -259,7 +259,7 @@ function escapeSelection(textarea: HTMLTextAreaElement, options: Partial<SyntaxH
};
}
const newText = text.replace(/([*_[\]()^`%\\~<>#|])/g, '\\$1');
const newText = text.replace(/([*_[\]()^`%\\~<>#|:.+\-])/g, '\\$1');
return {
newText,