From beca8029f4b0bb433a4be950fc3c158b6903765e Mon Sep 17 00:00:00 2001 From: Karl Bartel Date: Sun, 29 Sep 2019 17:02:25 +0200 Subject: [PATCH] Code blocks should contain the ending newline See https://spec.commonmark.org/0.29/#example-1 --- smu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smu.c b/smu.c index dc72cb3..2263877 100644 --- a/smu.c +++ b/smu.c @@ -42,8 +42,8 @@ static Parser parsers[] = { dounderline, docomment, dolineprefix, static int nohtml = 0; static Tag lineprefix[] = { - { " ", 0, "
", "
" }, - { "\t", 0, "
", "
" }, + { " ", 0, "
", "\n
" }, + { "\t", 0, "
", "\n
" }, { "> ", 2, "
", "
" }, { "###### ", 1, "
", "
" }, { "##### ", 1, "
", "
" },