1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00
This commit is contained in:
Emanuil Rusev
2014-02-04 23:03:19 +02:00
parent 7a4d3c0f18
commit 548a6f7945
3 changed files with 9 additions and 3 deletions

View File

@@ -974,7 +974,7 @@ class Parsedown
case '`':
if (preg_match('/^(`+)(.+?)\1(?!`)/', $text, $matches))
if (preg_match('/^(`+)[ ]*(.+?)[ ]*\1(?!`)/', $text, $matches))
{
$element_text = $matches[2];
$element_text = htmlspecialchars($element_text, ENT_NOQUOTES, 'UTF-8');