summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibMarkdown/HorizontalRule.cpp
diff options
context:
space:
mode:
authorPeter Elliott <pelliott@ualberta.ca>2021-08-29 15:59:41 -0700
committerAndreas Kling <kling@serenityos.org>2021-08-31 16:53:51 +0200
commitdee84113abba402a87b9e0440bfaa10fd67fe909 (patch)
tree4fe1cb73cc39195431f2d4a814df314810ded8a7 /Userland/Libraries/LibMarkdown/HorizontalRule.cpp
parent8d2c04821ff751fd6971154fe062392ae5116c33 (diff)
downloadserenity-dee84113abba402a87b9e0440bfaa10fd67fe909.zip
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
Diffstat (limited to 'Userland/Libraries/LibMarkdown/HorizontalRule.cpp')
-rw-r--r--Userland/Libraries/LibMarkdown/HorizontalRule.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibMarkdown/HorizontalRule.cpp b/Userland/Libraries/LibMarkdown/HorizontalRule.cpp
index 1fb7cc710b..190380c175 100644
--- a/Userland/Libraries/LibMarkdown/HorizontalRule.cpp
+++ b/Userland/Libraries/LibMarkdown/HorizontalRule.cpp
@@ -12,7 +12,7 @@ namespace Markdown {
String HorizontalRule::render_to_html() const
{
- return "<hr>\n";
+ return "<hr />\n";
}
String HorizontalRule::render_for_terminal(size_t view_width) const