diff --git a/test/fixtures/markdown-it/tables.txt b/test/fixtures/markdown-it/tables.txt index 26363f889..61c5899a2 100644 --- a/test/fixtures/markdown-it/tables.txt +++ b/test/fixtures/markdown-it/tables.txt @@ -1,5 +1,4 @@ -Tests from marked: - +Simple: . | Heading 1 | Heading 2 | --------- | --------- @@ -17,6 +16,7 @@ Tests from marked: . +Column alignment: . | Header 1 | Header 2 | Header 3 | Header 4 | | :------: | -------: | :------- | -------- | @@ -34,23 +34,7 @@ Tests from marked: . -. -Header 1 | Header 2 --------- | -------- -Cell 1 | Cell 2 -Cell 3 | Cell 4 -. - - - - - - - - -
Header 1Header 2
Cell 1Cell 2
Cell 3Cell 4
-. - +Nested emphases: . Header 1|Header 2|Header 3|Header 4 :-------|:------:|-------:|-------- @@ -69,7 +53,6 @@ Cell 1 |Cell 2 |Cell 3 |Cell 4 . Nested tables inside blockquotes: - . > foo|foo > ---|--- @@ -90,7 +73,6 @@ baz|baz . Nested tables inside lists: - . - foo|foo ---|--- @@ -112,8 +94,7 @@ Nested tables inside lists:

baz|baz

. -Minimal one-column table test: - +Minimal one-column: . | foo |---- @@ -128,3 +109,117 @@ Minimal one-column table test: . + +Second line indent should not be smaller than first: +. +- foo|foo +---|--- +bar|bar +. + +. + +Second line should not contain symbols except "-", ":", "|" and " ": +. +foo|foo +---|---s +bar|bar +. +

foo|foo +—|---s +bar|bar

+. + +Second line should contain "|" symbol: +. +foo|foo +---:--- +bar|bar +. +

foo|foo +—:--- +bar|bar

+. + +Second line should not have empty columns in the middle: +. +foo|foo +---||--- +bar|bar +. +

foo|foo +—||— +bar|bar

+. + +Wrong alignment symbol position: +. +foo|foo +---|-::- +bar|bar +. +

foo|foo +—|-::- +bar|bar

+. + + +Title line should contain "|" symbol: +. +foo +---|--- +bar|bar +. +

foo +—|--- +bar|bar

+. + +Title line should have correct column count: +. +foo|foo +---|---|--- +bar|bar +. +

foo|foo +—|---|— +bar|bar

+. + +Should terminate paragraph: +. +paragraph +foo|foo +---|--- +bar|bar +. +

paragraph

+ + + + + + + +
foofoo
barbar
+. + +Should be terminated via row without "|" symbol: +. +foo|foo +---|--- +paragraph +. + + + + + + +
foofoo
+

paragraph

+.