ladybird/Userland/Libraries/LibMarkdown
Peter Elliott dee84113ab LibMarkdown: Match HTML formatting of Commonmark tests
This patch changes the HTML formatting (where to put newlines, etc...)
to better match commonmark's test cases. This has minimal effect of the
correctness of our markdown implementation, but makes it easier to test.

Changes:
 - Use <em> instead of <i>.
 - Newline before end of code block.
 - <hr /> instead of <hr>.
 - Newline before first list item.
 - Newline between lines of a paragraph.
 - Trim whitespace on lines of paragraphs.

 Tests passed: 33/652 -> 87/652
2021-08-31 16:53:51 +02:00
..
Block.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
CMakeLists.txt Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
CodeBlock.cpp LibMarkdown: Match HTML formatting of Commonmark tests 2021-08-31 16:53:51 +02:00
CodeBlock.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Document.cpp LibMarkdown: Add render_to_inline_html() to Document 2021-08-31 16:53:51 +02:00
Document.h LibMarkdown: Add render_to_inline_html() to Document 2021-08-31 16:53:51 +02:00
Heading.cpp LibMarkdown: Convert a bunch of StringBuilder::appendf() => appendff() 2021-05-05 22:17:33 +02:00
Heading.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
HorizontalRule.cpp LibMarkdown: Match HTML formatting of Commonmark tests 2021-08-31 16:53:51 +02:00
HorizontalRule.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
List.cpp LibMarkdown: Match HTML formatting of Commonmark tests 2021-08-31 16:53:51 +02:00
List.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Paragraph.cpp LibMarkdown: Match HTML formatting of Commonmark tests 2021-08-31 16:53:51 +02:00
Paragraph.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Table.cpp LibMarkdown: Convert StringBuilder::appendf() => AK::Format 2021-05-07 21:12:09 +02:00
Table.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Text.cpp LibMarkdown: Match HTML formatting of Commonmark tests 2021-08-31 16:53:51 +02:00
Text.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00