Allow adjacent code spans

Fix #92.
This commit is contained in:
Haralan Dobrev 2014-02-06 11:00:19 +02:00
parent 95e9878fb0
commit f4ec384d03
3 changed files with 3 additions and 1 deletions

View File

@ -1028,7 +1028,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');

View File

@ -0,0 +1 @@
<p><code>code span</code><code>another code span</code></p>

View File

@ -0,0 +1 @@
`code span``another code span`