Add comma to specialCharacters list

This solves wrong behaviour with escaped commas.

You can see this wrong behaiviour using "1\. Hello\, world!" phrase at https://parsedown.org/demo
This commit is contained in:
Veaceslav Grimalschi 2021-11-21 07:29:48 +01:00 committed by GitHub
parent 6598f3860c
commit 16ed9592f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1961,7 +1961,7 @@ class Parsedown
# Read-Only
protected $specialCharacters = array(
'\\', '`', '*', '_', '{', '}', '[', ']', '(', ')', '>', '#', '+', '-', '.', '!', '|', '~'
'\\', '`', '*', '_', '{', '}', '[', ']', '(', ')', '>', '#', '+', '-', '.', '!', '|', '~', ','
);
protected $StrongRegex = array(