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.2 + +\| 2.1 +link + \ No newline at end of file diff --git a/test/data/table_inline_markdown.md b/test/data/table_inline_markdown.md index ef04ce1..2f3c620 100644 --- a/test/data/table_inline_markdown.md +++ b/test/data/table_inline_markdown.md @@ -1,4 +1,5 @@ | _header_ 1 | header 2 | | ------------ | ------------ | | _cell_ 1.1 | ~~cell~~ 1.2 | -| `|` 2.1 | \| 2.2 | \ No newline at end of file +| `|` 2.1 | \| 2.2 | +| `\|` 2.1 | [link](/) | \ No newline at end of file