mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
Tilde characters may be escaped
This commit is contained in:
parent
0a842fb5b1
commit
113c6d2b21
@ -1955,7 +1955,7 @@ class Parsedown
|
|||||||
# Read-Only
|
# Read-Only
|
||||||
|
|
||||||
protected $specialCharacters = array(
|
protected $specialCharacters = array(
|
||||||
'\\', '`', '*', '_', '{', '}', '[', ']', '(', ')', '>', '#', '+', '-', '.', '!', '|',
|
'\\', '`', '*', '_', '{', '}', '[', ']', '(', ')', '>', '#', '+', '-', '.', '!', '|', '~'
|
||||||
);
|
);
|
||||||
|
|
||||||
protected $StrongRegex = array(
|
protected $StrongRegex = array(
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
<p><del>strikethrough</del></p>
|
<p><del>strikethrough</del></p>
|
||||||
<p>here's <del>one</del> followed by <del>another one</del></p>
|
<p>here's <del>one</del> followed by <del>another one</del></p>
|
||||||
<p>~~ this ~~ is not one neither is ~this~</p>
|
<p>~~ this ~~ is not one neither is ~this~</p>
|
||||||
|
<p>escaped ~~this~~</p>
|
@ -3,3 +3,5 @@
|
|||||||
here's ~~one~~ followed by ~~another one~~
|
here's ~~one~~ followed by ~~another one~~
|
||||||
|
|
||||||
~~ this ~~ is not one neither is ~this~
|
~~ this ~~ is not one neither is ~this~
|
||||||
|
|
||||||
|
escaped \~\~this\~\~
|
Loading…
Reference in New Issue
Block a user