hr works again.
It's a little hacky :/
This commit is contained in:
parent
a2af303ce1
commit
9bb4f5d434
1 changed files with 3 additions and 2 deletions
3
smu.c
3
smu.c
|
@ -65,6 +65,7 @@ struct Tag lineprefix[] = {
|
||||||
{ "### ", 1, "<h3>", "</h3>" },
|
{ "### ", 1, "<h3>", "</h3>" },
|
||||||
{ "## ", 1, "<h2>", "</h2>" },
|
{ "## ", 1, "<h2>", "</h2>" },
|
||||||
{ "# ", 1, "<h1>", "</h1>" },
|
{ "# ", 1, "<h1>", "</h1>" },
|
||||||
|
{ "- - -\n", 1, "<hr />", ""},
|
||||||
};
|
};
|
||||||
struct Tag underline[] = {
|
struct Tag underline[] = {
|
||||||
{ "=", 1, "<h1>", "</h1>\n" },
|
{ "=", 1, "<h1>", "</h1>\n" },
|
||||||
|
@ -275,7 +276,7 @@ dolist(const char *begin, const char *end, int newblock) {
|
||||||
for(; p < end && run; p++) {
|
for(; p < end && run; p++) {
|
||||||
for(i = 0; p < end && run; p++, i++) {
|
for(i = 0; p < end && run; p++, i++) {
|
||||||
if(*p == '\n') {
|
if(*p == '\n') {
|
||||||
if(p + 1 >= end)
|
if(p + 1 == end)
|
||||||
break;
|
break;
|
||||||
else if(p[1] == '\n') {
|
else if(p[1] == '\n') {
|
||||||
p++;
|
p++;
|
||||||
|
|
Loading…
Add table
Reference in a new issue