diff --git a/Parser.php b/Parser.php
index 34f8318..1ce52b8 100644
--- a/Parser.php
+++ b/Parser.php
@@ -259,7 +259,7 @@ function ($matches) use ($self) {
// code
$text = preg_replace_callback(
- "/(^|[^\\\])(`+)(.+?)\\2/",
+ "/(^|[^\\\\])(`+)(.+?)\\2/",
function ($matches) use ($self) {
return $matches[1] . $self->makeHolder(
'' . htmlspecialchars($matches[3]) . '
'
diff --git a/test/test.php b/test/test.php
index e8bde41..4847729 100644
--- a/test/test.php
+++ b/test/test.php
@@ -44,6 +44,12 @@ function test($title, $specs) {
}
test('HyperDown', [
+ 'code' => [
+ "`code`" => [
+ "Hello `World`",
+ "
Hello World