smu

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

commit 469673436b2708e885b9e95f0f792a7ffe10ac86
parent 03f280144ca5290651031862f802e4bf39fa2dc5
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Thu, 13 May 2021 16:58:09 +0200

treat "---\n" as ruler (hr)

other Markdown parsers do this

Diffstat:
Msmu.c | 1+
Mtestdoc | 2++
2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/smu.c b/smu.c @@ -55,6 +55,7 @@ static Tag lineprefix[] = { { "## ", 1, "<h2>", "</h2>" }, { "# ", 1, "<h1>", "</h1>" }, { "- - -\n", 1, "<hr />", ""}, + { "---\n", 1, "<hr />", ""}, }; static Tag underline[] = { diff --git a/testdoc b/testdoc @@ -15,6 +15,8 @@ horizontal rule: - - - +--- + blocks and entities -------------------