treat "---\n" as ruler (hr) - smu - smu - simple markup (Markdown) processor (f… | |
git clone git://git.codemadness.org/smu | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 469673436b2708e885b9e95f0f792a7ffe10ac86 | |
parent 03f280144ca5290651031862f802e4bf39fa2dc5 | |
Author: Hiltjo Posthuma <[email protected]> | |
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(-) | |
--- | |
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 | |
------------------- |