End list when indent is not reached - smu - smu - simple markup (Markdown) processor (fork, fixes + features)
HTML git clone git://git.codemadness.org/smu
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 7fa950993c6d6deafe7787547951abdcec6e1a55
DIR parent 7228740ed1e3b14d19744cde41655c21e2e84035
HTML Author: Karl Bartel <karl42@gmail.com>
Date: Wed, 2 Oct 2019 13:06:09 +0200
End list when indent is not reached
Otherwise
```
- foo
- bar
+ baz
```
will become a nested list
Diffstat:
M smu.c | 2 ++
1 file changed, 2 insertions(+), 0 deletions(-)
---
DIR diff --git a/smu.c b/smu.c
@@ -391,6 +391,8 @@ dolist(const char *begin, const char *end, int newblock) {
else
break;
}
+ else if (j < indent)
+ run = 0;
}
ADDC(buffer, i) = *p;
}