diff options
author | Isaac Muse <faceless.shop@gmail.com> | 2017-01-20 16:16:52 -0700 |
---|---|---|
committer | Waylan Limberg <waylan.limberg@icloud.com> | 2017-01-20 18:16:52 -0500 |
commit | 4a3d1a6bc0cb49d8a472380614b53fdd300e7512 (patch) | |
tree | 1cfe266d3f780096673e2604cdce375c35cac9bd /tests/misc | |
parent | c70b2c4154d9b6e46f282c1f212c52e9fbfa5a07 (diff) | |
download | markdown-4a3d1a6bc0cb49d8a472380614b53fdd300e7512.tar.gz markdown-4a3d1a6bc0cb49d8a472380614b53fdd300e7512.tar.bz2 markdown-4a3d1a6bc0cb49d8a472380614b53fdd300e7512.zip |
Better inline code escaping (#533)
This aims to escape code in a more expected fashion. This handles
when backticks are escaped and when the escapes before backticks are
escaped.
Diffstat (limited to 'tests/misc')
-rw-r--r-- | tests/misc/backtick-escape.html | 5 | ||||
-rw-r--r-- | tests/misc/backtick-escape.txt | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/tests/misc/backtick-escape.html b/tests/misc/backtick-escape.html index 07f5115..da30541 100644 --- a/tests/misc/backtick-escape.html +++ b/tests/misc/backtick-escape.html @@ -1,3 +1,4 @@ -<p>\`This should not be in code.\` -`This also should not be in code.` +<p>`This should not be in code.` +\<code>This should be in code.\\</code> +\`This should not be in code.\` `And finally this should not be in code.`</p>
\ No newline at end of file diff --git a/tests/misc/backtick-escape.txt b/tests/misc/backtick-escape.txt index b4d80b2..c019463 100644 --- a/tests/misc/backtick-escape.txt +++ b/tests/misc/backtick-escape.txt @@ -1,3 +1,4 @@ -\\`This should not be in code.\\` -\`This also should not be in code.\` +\`This should not be in code.\` +\\`This should be in code.\\` +\\\`This should not be in code.\\\` \`And finally this should not be in code.` |