markman

Unnamed repository; edit this file 'description' to name the repository.
git clone git://edryd.org/markman
Log | Files | Refs | LICENSE

commit 5b522c97af919105d1d30667ecd8d314e9a58384
parent 97a35f01a17f4e302e14fe5086023f93375bc693
Author: Ed van Bruggen <edvb@uw.edu>
Date:   Sun,  6 Jan 2019 15:59:05 -0800

Don't capitalize headers past level 4

Diffstat:
markman.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/markman.c b/markman.c @@ -189,7 +189,7 @@ markman_parse(char *src) s = src; src += strcspn(src, "\n"); *src = '\0'; - ret = mk_header(lvl, line_parse((s[0] != '-') ? str_cap(s) : s, STR)); + ret = mk_header(lvl, line_parse(lvl < 4 ? str_cap(s) : s, STR)); if (lvl >= 4) ret->v.h.l->t = BOLD; ret->next = markman_parse(++src); @@ -210,7 +210,7 @@ markman_parse(char *src) ret = mk_bcode(s); ret->next = markman_parse(src); return ret; - case '*': + case '*': /* TODO support - */ if (src[1] == ' ') { /* TODO fix multiline points */ for (s = src; *src; src++)