diff --git a/test/fixtures/markdown-it/commonmark_extras.txt b/test/fixtures/markdown-it/commonmark_extras.txt index a205343..b4b2c45 100644 --- a/test/fixtures/markdown-it/commonmark_extras.txt +++ b/test/fixtures/markdown-it/commonmark_extras.txt @@ -84,9 +84,7 @@ Autolinks do not allow escaping: . - Escaping entities in links: - . [](<"> "&ö") @@ -101,7 +99,6 @@ Escaping entities in links: Checking combination of replaceEntities and unescapeMd: - . ~~~ &\&\\& just a funny little fence @@ -220,6 +217,7 @@ Coverage. Link

[test](

. + Coverage. Reference . [ diff --git a/test/fixtures/markdown-it/proto.txt b/test/fixtures/markdown-it/proto.txt index d467143..87fdccf 100644 --- a/test/fixtures/markdown-it/proto.txt +++ b/test/fixtures/markdown-it/proto.txt @@ -1,4 +1,3 @@ - . [__proto__] diff --git a/test/fixtures/markdown-it/smartquotes.txt b/test/fixtures/markdown-it/smartquotes.txt index 394a134..42be5d3 100644 --- a/test/fixtures/markdown-it/smartquotes.txt +++ b/test/fixtures/markdown-it/smartquotes.txt @@ -1,20 +1,15 @@ Should parse nested quotes: - . "foo 'bar' baz" -. -

“foo ‘bar’ baz”

-. -. 'foo 'bar' baz' . +

“foo ‘bar’ baz”

‘foo ‘bar’ baz’

. Should not overlap quotes: - . 'foo "bar' baz" . @@ -23,7 +18,6 @@ Should not overlap quotes: Should match quotes on the same level: - . "foo *bar* baz" . @@ -32,7 +26,6 @@ Should match quotes on the same level: Should handle adjacent nested quotes: - . '"double in single"' @@ -45,25 +38,21 @@ Should handle adjacent nested quotes: Should not match quotes on different levels: - . *"foo* bar" "foo *bar"* -. -

"foo bar"

-

"foo bar"

-. -. *"foo* bar *baz"* . +

"foo bar"

+

"foo bar"

"foo bar baz"

. -Should try and find matching quote in this case: +Should try and find matching quote in this case: . "foo "bar 'baz" . @@ -72,7 +61,6 @@ Should try and find matching quote in this case: Should not touch 'inches' in quotes: - . "Monitor 21"" and "Monitor"" . @@ -81,7 +69,6 @@ Should not touch 'inches' in quotes: Should render an apostrophe as a rsquo: - . This isn't and can't be the best approach to implement this... . @@ -90,7 +77,6 @@ This isn't and can't be the best approach to implement this... Apostrophe could end the word, that's why original smartypants replaces all of them as rsquo: - . users' stuff . diff --git a/test/fixtures/markdown-it/strikethrough.txt b/test/fixtures/markdown-it/strikethrough.txt index 83b3617..45765a6 100644 --- a/test/fixtures/markdown-it/strikethrough.txt +++ b/test/fixtures/markdown-it/strikethrough.txt @@ -22,15 +22,8 @@ x ~~~~foo~~~~

x foo

. -# Disabled since we moved subsripts to plugins -#. -#x ~~~foo~~~ -#. -#

x foo

-#. Strikeouts have the same priority as emphases: - . **~~test**~~ @@ -40,6 +33,7 @@ Strikeouts have the same priority as emphases:

**test**

. + Strikeouts have the same priority as emphases with respect to links: . [~~link]()~~ @@ -50,6 +44,7 @@ Strikeouts have the same priority as emphases with respect to links:

~~link~~

. + Strikeouts have the same priority as emphases with respect to backticks: . ~~`code~~` @@ -60,19 +55,18 @@ Strikeouts have the same priority as emphases with respect to backticks:

~~code~~

. + Nested strikeouts: . ~~foo ~~bar~~ baz~~ -. -

foo bar baz

-. -. ~~f **o ~~o b~~ a** r~~ . +

foo bar baz

f o o b a r

. + Should not have a whitespace between text and "~~": . foo ~~ bar ~~ baz @@ -82,7 +76,6 @@ foo ~~ bar ~~ baz Newline should be considered a whitespace: - . ~~test ~~ diff --git a/test/fixtures/markdown-it/tables.txt b/test/fixtures/markdown-it/tables.txt index 23eefcb..62bfc45 100644 --- a/test/fixtures/markdown-it/tables.txt +++ b/test/fixtures/markdown-it/tables.txt @@ -16,6 +16,7 @@ Simple: . + Column alignment: . | Header 1 | Header 2 | Header 3 | Header 4 | @@ -34,6 +35,7 @@ Column alignment: . + Nested emphases: . Header 1|Header 2|Header 3|Header 4 @@ -52,6 +54,7 @@ Cell 1 |Cell 2 |Cell 3 |Cell 4 . + Nested tables inside blockquotes: . > foo|foo @@ -72,6 +75,7 @@ baz|baz

baz|baz

. + Nested tables inside lists: . - foo|foo @@ -110,6 +114,7 @@ Minimal one-column: . + Second line indent should not be smaller than first: . - foo|foo @@ -123,6 +128,7 @@ bar|bar . + Second line should not contain symbols except "-", ":", "|" and " ": . foo|foo @@ -134,6 +140,7 @@ bar|bar bar|bar

. + Second line should contain "|" symbol: . foo|foo @@ -145,6 +152,7 @@ bar|bar bar|bar

. + Second line should not have empty columns in the middle: . foo|foo @@ -156,6 +164,7 @@ bar|bar bar|bar

. + Wrong alignment symbol position: . foo|foo @@ -179,6 +188,7 @@ bar|bar bar|bar

. + Title line should have correct column count: . foo|foo @@ -190,6 +200,7 @@ bar|bar bar|bar

. + Should terminate paragraph: . paragraph @@ -208,6 +219,7 @@ bar|bar . + Should be terminated via row without "|" symbol: . foo|foo @@ -224,6 +236,7 @@ paragraph

paragraph

. + Delimiter escaping: . | Heading 1 \\\\| Heading 2 diff --git a/test/fixtures/markdown-it/typographer.txt b/test/fixtures/markdown-it/typographer.txt index b476ed9..0e38519 100644 --- a/test/fixtures/markdown-it/typographer.txt +++ b/test/fixtures/markdown-it/typographer.txt @@ -68,17 +68,14 @@ dashes markdownit---awesome abc ---- -. -

—markdownit — super—

-

markdownit—awesome

-

abc ----

-. -. + --markdownit -- super-- markdownit--awesome . +

—markdownit — super—

+

markdownit—awesome

+

abc ----

–markdownit – super–

markdownit–awesome

. - diff --git a/test/fixtures/markdown-it/xss.txt b/test/fixtures/markdown-it/xss.txt index b49e02a..8909583 100644 --- a/test/fixtures/markdown-it/xss.txt +++ b/test/fixtures/markdown-it/xss.txt @@ -5,9 +5,7 @@ . - Should not allow some protocols in links and images - . [xss link](javascript:alert(1)) @@ -33,7 +31,6 @@ Should not allow some protocols in links and images [xss link](Javascript:alert(1)) [xss link](&#74;avascript:alert(1)) - .

xss link

[xss link](Javascript:alert(1))

@@ -54,7 +51,6 @@ Should not allow some protocols in links and images Image parser use the same code base. - . ![xss link](javascript:alert(1)) . @@ -63,7 +59,6 @@ Image parser use the same code base. Autolinks - . @@ -75,7 +70,6 @@ Autolinks Linkifier - . javascript:alert(1) @@ -85,8 +79,8 @@ javascript:alert(1)

javascript:alert(1)

. -References +References . [test]: javascript:alert(1) .