markman

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

commit 418871b54dd8669ea0053f108c66a893be800510
parent 7c21cca95daa28816e424707d2b8d8adc9e4c8e0
Author: Ed van Bruggen <edvb@uw.edu>
Date:   Thu, 10 Jan 2019 23:38:09 -0800

Don't capitalize contents of name section

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

diff --git a/markman.c b/markman.c @@ -189,8 +189,9 @@ markman_parse(char *src) s = src; src += strcspn(src, "\n"); *src = '\0'; - ret = mk_header(lvl, line_parse(lvl < 4 ? str_cap(s) : s, STR)); - if (lvl >= 4) + ret = mk_header(lvl, line_parse(lvl > 3 || (lvl == 1 && namesec) + ? s : str_cap(s), STR)); + if (lvl > 3) ret->v.h.l->t = BOLD; ret->next = markman_parse(++src); return ret;