mirror of
https://github.com/erusev/parsedown.git
synced 2024-09-20 03:51:29 +02:00
parent
95e9878fb0
commit
f4ec384d03
@ -1028,7 +1028,7 @@ class Parsedown
|
|||||||
|
|
||||||
case '`':
|
case '`':
|
||||||
|
|
||||||
if (preg_match('/^(`+)[ ]*(.+?)[ ]*\1(?!`)/', $text, $matches))
|
if (preg_match('/^(`+)[ ]*(.+?)[ ]*\1/', $text, $matches))
|
||||||
{
|
{
|
||||||
$element_text = $matches[2];
|
$element_text = $matches[2];
|
||||||
$element_text = htmlspecialchars($element_text, ENT_NOQUOTES, 'UTF-8');
|
$element_text = htmlspecialchars($element_text, ENT_NOQUOTES, 'UTF-8');
|
||||||
|
1
tests/data/code_span_adjacent.html
Normal file
1
tests/data/code_span_adjacent.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
<p><code>code span</code><code>another code span</code></p>
|
1
tests/data/code_span_adjacent.md
Normal file
1
tests/data/code_span_adjacent.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
`code span``another code span`
|
Loading…
Reference in New Issue
Block a user