Code blocks should contain the ending newline

See https://spec.commonmark.org/0.29/#example-1
This commit is contained in:
Karl Bartel 2019-09-29 17:02:25 +02:00 committed by Enno Boland
parent 0bb70e62b8
commit beca8029f4

4
smu.c
View file

@ -42,8 +42,8 @@ static Parser parsers[] = { dounderline, docomment, dolineprefix,
static int nohtml = 0; static int nohtml = 0;
static Tag lineprefix[] = { static Tag lineprefix[] = {
{ " ", 0, "<pre><code>", "</code></pre>" }, { " ", 0, "<pre><code>", "\n</code></pre>" },
{ "\t", 0, "<pre><code>", "</code></pre>" }, { "\t", 0, "<pre><code>", "\n</code></pre>" },
{ "> ", 2, "<blockquote>", "</blockquote>" }, { "> ", 2, "<blockquote>", "</blockquote>" },
{ "###### ", 1, "<h6>", "</h6>" }, { "###### ", 1, "<h6>", "</h6>" },
{ "##### ", 1, "<h5>", "</h5>" }, { "##### ", 1, "<h5>", "</h5>" },