From dda33114ad36e2b1ca4d526f71787ba3414b9da7 Mon Sep 17 00:00:00 2001 From: Isaac Muse Date: Wed, 11 Jan 2017 09:19:06 -0700 Subject: Better handling of backticks in tables (#524) At some point the logic of counting backticks and determining if they are odd or even was used to parse a row's text into cells. Unfortunately this approach broke expected code parsing logic in a table. We essentially traded one bug for another. This fixes table backtick handling and restores sane backtick logic while preserving existing fixes. (issue #449) --- tests/extensions/extra/tables.html | 31 ++++++++++++++++++++++++++++++- tests/extensions/extra/tables.txt | 10 ++++++++++ 2 files changed, 40 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/extensions/extra/tables.html b/tests/extensions/extra/tables.html index 85d9940..a0b1f71 100644 --- a/tests/extensions/extra/tables.html +++ b/tests/extensions/extra/tables.html @@ -255,4 +255,33 @@ Content Cell | Content Cell \ No newline at end of file + +

Add tests for issue #449

+ + + + + + + + + + + + + +
Odd backticksEven backticks
[!\"\#$%&'()*+,\-./:;<=>?@\[\\\]^_`{|}~][!\"\#$%&'()*+,\-./:;<=>?@\[\\\]^`_`{|}~]
+ + + + + + + + + + + + + +
EscapesMore Escapes
`\\
\ No newline at end of file diff --git a/tests/extensions/extra/tables.txt b/tests/extensions/extra/tables.txt index c843918..a9677ba 100644 --- a/tests/extensions/extra/tables.txt +++ b/tests/extensions/extra/tables.txt @@ -80,3 +80,13 @@ Lists are not tables - this | should | not - be | a | table + +Add tests for issue #449 + +Odd backticks | Even backticks +------------ | ------------- +``[!\"\#$%&'()*+,\-./:;<=>?@\[\\\]^_`{|}~]`` | ``[!\"\#$%&'()*+,\-./:;<=>?@\[\\\]^`_`{|}~]`` + +Escapes | More Escapes +------- | ------ +`` `\`` | `\` -- cgit v1.2.3