showdown/test/functional/makemarkdown/cases/standard
Chris 5fc843e175
feat(makemarkdown.table): support non-strict tables
* feat(makemarkdown.table): support non-strict tables

change to support non strict html tables.
currently html tables require both 'thead' and 'tbody' to be set.
since there are many tables out there that dont meet these requirements,
i added support for most common tables. all of the following tables will now
work (the last one, is the only version that is currently working):
<table><tr><td>t 0 - missing thead/tbody</td></tr></table>
<table><tr><td>t 1 - missing thead/tbody</td></tr><tr><td>t 1 body</td></tr></table>
<table><thead><tr><th>t 2 - thead only</th></tr></thead></table>
<table><thead><tr><td>t 3 - thead with td</td></tr></thead></table>
<table><tbody><tr><td>t 4 - tbody only</td></tr></tbody></table>
<table><thead><tr><th>t 5 - both thead and tbody</th></tr></thead><tbody><tr><td>t 5</td></tr></tbody></table>
i thought this feature should be made optional in case you only want
to support fully compliant tables. but then i realized, that the options
are only passed to the markdown subparsers, not the html ones.
and since this does not break anything (all tests pass), its ok, i guess...

Closes #687

* refactor: code refactor and added tests

Co-authored-by: Estevão Soares dos Santos <estevao.santos@gmail.com>
2022-03-26 04:18:05 +00:00
..
anchors-relative.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
anchors-relative.md refactor: force brackets in links 2017-12-23 12:41:21 +00:00
anchors.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
anchors.md refactor: force brackets in links 2017-12-23 12:41:21 +00:00
blockquote-followed-by-code.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
blockquote-followed-by-code.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
blockquote-nested-markdown.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
blockquote-nested-markdown.md test: fix tests 2017-12-23 13:20:14 +00:00
blockquote.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
blockquote.md test: fix tests 2017-12-23 13:20:14 +00:00
breaks.html fix(makeMarkdown): handle <br> tags converting html to markdown 2019-01-01 20:22:49 +00:00
breaks.md fix(makeMarkdown): handle <br> tags converting html to markdown 2019-01-01 20:22:49 +00:00
emphasis-double.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
emphasis-double.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
emphasis-inside-inline-code.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
emphasis-inside-inline-code.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
emphasis.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
emphasis.md refactor: force brackets in links 2017-12-23 12:41:21 +00:00
escaping-html-entities.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
escaping-html-entities.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
escaping.html test: fix tests 2017-12-23 13:20:14 +00:00
escaping.md test: fix tests 2017-12-23 13:20:14 +00:00
github-style-at-start.html test: fix tests 2017-12-23 13:20:14 +00:00
github-style-at-start.md test: fix tests 2017-12-23 13:20:14 +00:00
github-style-codeblock-inside-quote.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
github-style-codeblock-inside-quote.md test: fix tests 2017-12-23 13:20:14 +00:00
github-style-codeblock.html test: fix tests 2017-12-23 13:20:14 +00:00
github-style-codeblock.md test: fix tests 2017-12-23 13:20:14 +00:00
github-style-linebreaks.html test: fix tests 2017-12-23 13:20:14 +00:00
github-style-linebreaks.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
h1-with-single-hash.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
h1-with-single-hash.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
h2-with-single-hash.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
h2-with-single-hash.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
h3-with-single-hash.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
h3-with-single-hash.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
h4-with-single-hash.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
h4-with-single-hash.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
h5-with-single-hash.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
h5-with-single-hash.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
h6-with-single-hash.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
h6-with-single-hash.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
horizontal-rules.html test: fix tests 2017-12-23 13:20:14 +00:00
horizontal-rules.md test: fix tests 2017-12-23 13:20:14 +00:00
html-comments.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
html-comments.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
html.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
html.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
html5-strutural-tags.html Add <details> corresponding makeMarkdown test 2020-04-13 23:05:07 +01:00
html5-strutural-tags.md Add <details> corresponding makeMarkdown test 2020-04-13 23:05:07 +01:00
images-followed-by-brackets.html refactor: force brackets in links 2017-12-23 12:41:21 +00:00
images-followed-by-brackets.md refactor: force brackets in links 2017-12-23 12:41:21 +00:00
images.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
images.md refactor: force brackets in links 2017-12-23 12:41:21 +00:00
list-doubleline.html test: fix tests 2017-12-23 13:20:14 +00:00
list-doubleline.md test: fix tests 2017-12-23 13:20:14 +00:00
list-followed-by-blockquote.html test: fix tests 2017-12-23 13:20:14 +00:00
list-followed-by-blockquote.md test: fix tests 2017-12-23 13:20:14 +00:00
list-followed-by-ghcode.html test: fix tests 2017-12-23 13:20:14 +00:00
list-followed-by-ghcode.md test: fix tests 2017-12-23 13:20:14 +00:00
list-with-blockquote.html test: fix tests 2017-12-23 13:20:14 +00:00
list-with-blockquote.md test: fix tests 2017-12-23 13:20:14 +00:00
list-with-code.html test: fix tests 2017-12-23 13:20:14 +00:00
list-with-code.md test: fix tests 2017-12-23 13:20:14 +00:00
multi-paragraph-list.html test: fix tests 2017-12-23 13:20:14 +00:00
multi-paragraph-list.md test: fix tests 2017-12-23 13:20:14 +00:00
nested-gh-codeblocks.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
nested-gh-codeblocks.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
ordered-list-starting-number.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
ordered-list-starting-number.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
ordered-list.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
ordered-list.md test: fix tests 2017-12-23 13:20:14 +00:00
paragraph-simple.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
paragraph-simple.md test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
paragraphed-list-with-sublists.html test: add tests for reverse converter 2017-12-23 12:35:31 +00:00
paragraphed-list-with-sublists.md test: fix tests 2017-12-23 13:20:14 +00:00
table-complex.html feat(makemarkdown.table): support non-strict tables 2022-03-26 04:18:05 +00:00
table-complex.md feat(makemarkdown.table): support non-strict tables 2022-03-26 04:18:05 +00:00
table-header-only.html feat(makemarkdown.table): support non-strict tables 2022-03-26 04:18:05 +00:00
table-header-only.md feat(makemarkdown.table): support non-strict tables 2022-03-26 04:18:05 +00:00
table-mix-malformed.html feat(makemarkdown.table): support non-strict tables 2022-03-26 04:18:05 +00:00
table-mix-malformed.md feat(makemarkdown.table): support non-strict tables 2022-03-26 04:18:05 +00:00
table-no-header.html feat(makemarkdown.table): support non-strict tables 2022-03-26 04:18:05 +00:00
table-no-header.md feat(makemarkdown.table): support non-strict tables 2022-03-26 04:18:05 +00:00
table-simple.html feat(makemarkdown.table): support non-strict tables 2022-03-26 04:18:05 +00:00
table-simple.md feat(makemarkdown.table): support non-strict tables 2022-03-26 04:18:05 +00:00