1
Fork 0
mdbook-toc/tests
Jan-Erik Rediger c9484d562e Always convert CRLF into LF-only line endings.
CRLF lineendings will happen on Windows,
but they shouldn't matter for Markdown content.

pulldown-cmark will parse them _nearly_ the same.
`<!-- toc -->\r\n` will actually be 2 HTML elements:
the `<!-- toc -->` part and a `\n` part,
whereas `<!-- toc -->\n` will be just one: `<!-- toc -->\n`.
That throws off our marker parser because we're looking for the latter only.

So by stripping our the CR (`\r`) we don't need to special-case anything.
The rendering will be the same.

Closes #35
2023-05-15 21:21:06 +02:00
..
adds_toc.in.md Convert all tests into input/output files 2021-06-23 12:30:55 +02:00
adds_toc.out.md Avoid roundtripping through pulldown-cmark 2022-01-25 21:04:50 +01:00
backslash_escapes.in.md Add test case for backslash escapes 2021-08-02 18:18:49 +02:00
backslash_escapes.out.md Avoid roundtripping through pulldown-cmark 2022-01-25 21:04:50 +01:00
empty_document.in.md Handle empty documents. 2023-01-09 21:51:21 +01:00
empty_document.out.md Handle empty documents. 2023-01-09 21:51:21 +01:00
github_marker.in.md Convert all tests into input/output files 2021-06-23 12:30:55 +02:00
github_marker.out.md Convert all tests into input/output files 2021-06-23 12:30:55 +02:00
gitlab_marker.in.md Convert all tests into input/output files 2021-06-23 12:30:55 +02:00
gitlab_marker.out.md Convert all tests into input/output files 2021-06-23 12:30:55 +02:00
handles_inline_code.in.md Avoid roundtripping through pulldown-cmark 2022-01-25 21:04:50 +01:00
handles_inline_code.out.md Convert all tests into input/output files 2021-06-23 12:30:55 +02:00
higher_max_level.in.md Convert all tests into input/output files 2021-06-23 12:30:55 +02:00
higher_max_level.out.md Convert all tests into input/output files 2021-06-23 12:30:55 +02:00
it.rs Always convert CRLF into LF-only line endings. 2023-05-15 21:21:06 +02:00
lower_max_level.in.md Convert all tests into input/output files 2021-06-23 12:30:55 +02:00
lower_max_level.out.md Convert all tests into input/output files 2021-06-23 12:30:55 +02:00
multi_header.in.md Convert all tests into input/output files 2021-06-23 12:30:55 +02:00
multi_header.out.md Convert all tests into input/output files 2021-06-23 12:30:55 +02:00
multi_header_linear.in.md Convert all tests into input/output files 2021-06-23 12:30:55 +02:00
multi_header_linear.out.md Avoid roundtripping through pulldown-cmark 2022-01-25 21:04:50 +01:00
nonhtml_marker_no_use.in.md Convert all tests into input/output files 2021-06-23 12:30:55 +02:00
nonhtml_marker_no_use.out.md Convert all tests into input/output files 2021-06-23 12:30:55 +02:00
similar_heading_different_casing.in.md Convert all tests into input/output files 2021-06-23 12:30:55 +02:00
similar_heading_different_casing.out.md Convert all tests into input/output files 2021-06-23 12:30:55 +02:00
tables_untouched.in.md Convert all tests into input/output files 2021-06-23 12:30:55 +02:00
tables_untouched.out.md Avoid roundtripping through pulldown-cmark 2022-01-25 21:04:50 +01:00
tables_with_html.in.md Bump dependencies to fix HTML in tables 2021-06-23 10:01:39 -04:00
tables_with_html.out.md Avoid roundtripping through pulldown-cmark 2022-01-25 21:04:50 +01:00
unique_slugs.in.md Convert all tests into input/output files 2021-06-23 12:30:55 +02:00
unique_slugs.out.md Convert all tests into input/output files 2021-06-23 12:30:55 +02:00
with_inline_code.in.md Regression test for double inner backticks 2022-01-25 21:06:45 +01:00
with_inline_code.out.md Regression test for double inner backticks 2022-01-25 21:06:45 +01:00