mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-04-07 20:19:39 +02:00
Escape more characters for markdown
This commit is contained in:
parent
3c7c1e1ec1
commit
39d1eb6dee
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue