smu

Simple markup processor
git clone https://git.sinitax.com/codemadness/smu
Log | Files | Refs | README | LICENSE | Upstream | sfeed.txt

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:
Msmu.c | 4++--
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>" },