commit beca8029f4b0bb433a4be950fc3c158b6903765e
parent 0bb70e62b863b7c7e9686ef058835957ae0ead7b
Author: Karl Bartel <karl42@gmail.com>
Date: Sun, 29 Sep 2019 17:02:25 +0200
Code blocks should contain the ending newline
See https://spec.commonmark.org/0.29/#example-1
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/smu.c b/smu.c
@@ -42,8 +42,8 @@ static Parser parsers[] = { dounderline, docomment, dolineprefix,
static int nohtml = 0;
static Tag lineprefix[] = {
- { " ", 0, "<pre><code>", "</code></pre>" },
- { "\t", 0, "<pre><code>", "</code></pre>" },
+ { " ", 0, "<pre><code>", "\n</code></pre>" },
+ { "\t", 0, "<pre><code>", "\n</code></pre>" },
{ "> ", 2, "<blockquote>", "</blockquote>" },
{ "###### ", 1, "<h6>", "</h6>" },
{ "##### ", 1, "<h5>", "</h5>" },