treat "---\n" as ruler (hr) - smu - smu - simple markup (Markdown) processor (fork, fixes + features)
(HTM) git clone git://git.codemadness.org/smu
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 469673436b2708e885b9e95f0f792a7ffe10ac86
(DIR) parent 03f280144ca5290651031862f802e4bf39fa2dc5
(HTM) 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:
M smu.c | 1 +
M testdoc | 2 ++
2 files changed, 3 insertions(+), 0 deletions(-)
---
(DIR) 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[] = {
(DIR) diff --git a/testdoc b/testdoc
@@ -15,6 +15,8 @@ horizontal rule:
- - -
+---
+
blocks and entities
-------------------