diff --git a/Parsedown.php b/Parsedown.php index adcd84e..17f54e4 100755 --- a/Parsedown.php +++ b/Parsedown.php @@ -910,7 +910,6 @@ class Parsedown foreach ($matches[0] as $index => $cell) { $cell = trim($cell); - $cell = str_replace('\|', '|', $cell); $Element = array( 'name' => 'td', @@ -1512,7 +1511,7 @@ class Parsedown # Read-only protected $specialCharacters = array( - '\\', '`', '*', '_', '{', '}', '[', ']', '(', ')', '>', '#', '+', '-', '.', '!', + '\\', '`', '*', '_', '{', '}', '[', ']', '(', ')', '>', '#', '+', '-', '.', '!', '|', ); protected $StrongRegex = array( diff --git a/test/data/table_inline_markdown.html b/test/data/table_inline_markdown.html index 4fa2e2b..f4cebec 100644 --- a/test/data/table_inline_markdown.html +++ b/test/data/table_inline_markdown.html @@ -14,5 +14,9 @@
|
2.1\|
2.1