1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00

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

View File

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