summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgottox@rootkit.lan <gottox@rootkit.lan>2007-12-14 08:33:27 +0100
committergottox@rootkit.lan <gottox@rootkit.lan>2007-12-14 08:33:27 +0100
commit7df5fd714d8079256b34156ed59071333d84e772 (patch)
tree474f8804df2ad042300ca40df26b4ab0b69fe1a9
parent604eff6c9ee1089021eb61384e4f9870fe4544fc (diff)
version 0.6
-rw-r--r--cmarkdown.c4
-rw-r--r--config.mk2
2 files changed, 3 insertions, 3 deletions
diff --git a/cmarkdown.c b/cmarkdown.c
index fac3212..b64e17c 100644
--- a/cmarkdown.c
+++ b/cmarkdown.c
@@ -258,11 +258,11 @@ dolist(const char *begin, const char *end, int first) {
const char *p, *q;
char *buffer;
- if(*begin != '\n' && !first)
+ if(*begin != '\n' || begin[1] != '\n' && !first)
return 0;
p = begin;
if(!first)
- p++;
+ p += 2;
q = p;
if((*p == '-' || *p == '*' || *p == '+') && (p[1] == ' ' || p[1] == '\t')) {
ul = 1;
diff --git a/config.mk b/config.mk
index 953eb57..6013d6d 100644
--- a/config.mk
+++ b/config.mk
@@ -1,5 +1,5 @@
# cmarkdown version
-VERSION = 0.5.2
+VERSION = 0.6
# paths
PREFIX = /usr/local