diff --git a/test/fixtures/commonmark/bad.txt b/test/fixtures/commonmark/bad.txt index 99133f8..a00e6d9 100644 --- a/test/fixtures/commonmark/bad.txt +++ b/test/fixtures/commonmark/bad.txt @@ -1,38 +1,1488 @@ +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src line: 468 + +. +- Foo +- * * * +. +
A paragraph +with two lines.
+indented code
+
+++A block quote.
+
A paragraph +with two lines.
+indented code
+
++A block quote.
+
one
+two
+one
+two
one
+two
+one
+two
++. + +error: + ++++
+- +
+one
+two
+
++ + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src line: 2664 + +. +- foo + + bar + +- foo + + + bar + +- ``` + foo + + + bar + ``` +. ++++
+- +
one
+two
foo
+bar
+foo
+bar
+foo
+
+
+bar
+
+foo
+bar
foo
bar
+foo
+
+
+bar
+
foo
+bar
+
+baz
+++bam
+
foo
+bar
+
+baz
++bam
+
foo
+bar
+
+foo
+bar
+
foo
+bar
+
+foo
+bar
+
indented code
+
+paragraph
+more code
+
+indented code
+
+paragraph
+more code
+
indented code
+
+paragraph
+more code
+
+ indented code
+
+paragraph
+more code
+
foo
+bar
+foo
+bar
A paragraph +with two lines.
+indented code
+
+++A block quote.
+
A paragraph +with two lines.
+indented code
+
++A block quote.
+
A paragraph +with two lines.
+indented code
+
+++A block quote.
+
A paragraph +with two lines.
+indented code
+
++A block quote.
+
A paragraph +with two lines.
+indented code
+
+++A block quote.
+
A paragraph +with two lines.
+indented code
+
++A block quote.
+
A paragraph +with two lines.
+indented code
+
+++A block quote.
+
A paragraph +with two lines.
+indented code
+
++A block quote.
+
++. + +error: + ++
+- +
+++Blockquote +continued here.
+
++ + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src line: 3035 + +. +> 1. > Blockquote +> continued here. +. ++
+- +
+Blockquote +continued here.
+
++. + +error: + ++
+- +
+++Blockquote +continued here.
+
++ + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src line: 3061 + +. +- foo + - bar + - baz +. ++
+- +
+Blockquote +continued here.
+
foo
+bar
+foo
bar
bim
+
+.
+
+error:
+
+ bim
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+src line: 3613
+
+.
+- foo
+
+ notcode
+
+- foo
+
+
+ code
+.
+foo
+notcode
+foo
+code
+
+.
+
+error:
+
+foo
+notcode
foo
code
+
+
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+src line: 3664
+
+.
+- a
+- b
+
+- c
+.
+a
+b
+c
+a
b
c
a
+c
+a
c
a
+b
+c
+d
+a
b
+c
d
a
+b
+d
+a
b
d
b
+
+
+
+b
+
+
+
b
+c
+b
+c
++b
+
+b
+
++b
+
c
+
+++b
+
c
+
baz
foo
+baz
+foo
+baz
a
+d
+a
+d
+* a *
+. + +error: + +foo bar
+. + +error: + +____foo__ bar__
+ + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src line: 4850 + +. +**foo **bar**** +. +foo bar
+. + +error: + +**foo **bar****
+ + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src line: 4977 + +. +****foo* +. +***foo
+. + +error: + +****foo*
+ + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src line: 4989 + +. +*foo**** +. +foo***
+. + +error: + +*foo****
+ + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src line: 5056 + +. +____foo_ +. +___foo
+. + +error: + +____foo_
+ + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src line: 5068 + +. +_foo____ +. +foo___
+. + +error: + +_foo____
+ + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src line: 5104 + +. +****foo**** +. +foo
+. + +error: + +****foo****
+ + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src line: 5110 + +. +____foo____ +. +foo
+. + +error: + +____foo____
+ + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src line: 5120 + +. +******foo****** +. +foo
+. + +error: + +******foo******
+ + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src line: 5134 + +. +_____foo_____ +. +foo
+. + +error: + +_____foo_____
+ + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src line: 5521 + +. +[foo [bar](/uri)](/uri) +. +[foo bar](/uri)
+. + +error: + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src line: 5527 + +. +[foo *[bar [baz](/uri)](/uri)*](/uri) +. +[foo [bar baz](/uri)](/uri)
+. + +error: + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src line: 5648 + +. +[foo [bar](/uri)][ref] + +[ref]: /uri +. + +. + +error: + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src line: 5656 + +. +[foo *bar [baz][ref]*][ref] + +[ref]: /uri +. + +. + +error: + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src line: 5803 + +. +[foo][ref[bar]] + +[ref[bar]]: /uri +. +[foo][ref[bar]]
+[ref[bar]]: /uri
+. + +error: + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src line: 5812 + +. +[[[foo]]] + +[[[foo]]]: /url +. +[[[foo]]]
+[[[foo]]]: /url
+. + +error: + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src line: 5923 + +. +[foo] bar + +[foo]: /url +. +foo bar
+. + +error: + +foobar
+ + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src line: 6028 . ![foo *bar*] [foo *bar*]: train.jpg "train & tracks" . - + . error: @@ -41,14 +1491,42 @@ error: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src line: 5611 +src line: 6036 + +. +![foo ![bar](/url)](/url2) +. + +. + +error: + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src line: 6042 + +. +![foo [bar](/url)](/url2) +. + +. + +error: + + + + +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src line: 6055 . ![foo *bar*][] [foo *bar*]: train.jpg "train & tracks" . - + . error: @@ -57,14 +1535,14 @@ error: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src line: 5619 +src line: 6063 . ![foo *bar*][foobar] [FOOBAR]: train.jpg "train & tracks" . - + . error: @@ -73,14 +1551,14 @@ error: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src line: 5679 +src line: 6123 . ![*foo* bar][] [*foo* bar]: /url "title" . - + . error: @@ -89,14 +1567,14 @@ error: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src line: 5719 +src line: 6163 . ![*foo* bar] [*foo* bar]: /url "title" . - + . error: @@ -104,3 +1582,20 @@ error: +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +src line: 6173 + +. +![[foo]] + +[[foo]]: /url "title" +. +![[foo]]
+[[foo]]: /url "title"
+. + +error: + + + + diff --git a/test/fixtures/commonmark/good.txt b/test/fixtures/commonmark/good.txt index e5af533..e94ff47 100644 --- a/test/fixtures/commonmark/good.txt +++ b/test/fixtures/commonmark/good.txt @@ -21,7 +21,7 @@ src line: 212 . ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src line: 241 +src line: 244 . - `one @@ -34,7 +34,7 @@ src line: 241 . ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src line: 279 +src line: 282 . *** @@ -47,7 +47,7 @@ ___ . ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src line: 291 +src line: 294 . +++ @@ -56,7 +56,7 @@ src line: 291 . ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src line: 297 +src line: 300 . === @@ -65,7 +65,7 @@ src line: 297 . ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src line: 305 +src line: 308 . -- @@ -78,7 +78,7 @@ __ . ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src line: 317 +src line: 320 . *** @@ -91,7 +91,7 @@ src line: 317 . ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src line: 329 +src line: 332 . *** @@ -101,7 +101,7 @@ src line: 329 . ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src line: 336 +src line: 339 . Foo @@ -112,7 +112,7 @@ Foo . ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src line: 346 +src line: 349 . _____________________________________ @@ -121,7 +121,7 @@ _____________________________________ . ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src line: 354 +src line: 357 . - - - @@ -130,7 +130,7 @@ src line: 354 . ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src line: 360 +src line: 363 . ** * ** * ** * ** @@ -139,7 +139,7 @@ src line: 360 . ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src line: 366 +src line: 369 . - - - - @@ -148,7 +148,7 @@ src line: 366 . ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src line: 374 +src line: 377 . - - - - @@ -157,7 +157,7 @@ src line: 374 . ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src line: 382 +src line: 385 . _ _ _ _ a @@ -172,7 +172,7 @@ a------ . ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src line: 397 +src line: 400 . *-* @@ -181,7 +181,7 @@ src line: 397 . ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src line: 405 +src line: 408 . - foo @@ -198,7 +198,7 @@ src line: 405 . ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src line: 421 +src line: 424 . Foo @@ -211,7 +211,7 @@ bar . ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src line: 437 +src line: 440 . Foo @@ -223,7 +223,7 @@ bar . ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src line: 449 +src line: 452 . * Foo @@ -240,20 +240,7 @@ src line: 449 . ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -src line: 465 - -. -- Foo -- * * * -. -