From 413ca68a9606500ea8766ad7c4d1d0cf91c1287d Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Wed, 15 Dec 2021 21:57:13 -0500 Subject: [PATCH] Add support for wrapped lists --- blag.c | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/blag.c b/blag.c index 46de1e0..5b32436 100644 --- a/blag.c +++ b/blag.c @@ -10,9 +10,9 @@ * *

tags around paragraphs * - * * bullets (non-nested) + * * bullets (non-nested), breaks allowed if indented * - * 1. numerical lists (non-nested) + * 1. numerical lists (non-nested), breaks allowed if indented * * > quotes * @@ -77,16 +77,14 @@ int closeblock(int in, int hlvl) { printf("\n"); } else if (in == ULIST) { in = ULIST_BREAK; - printf(""); } else if (in == ULIST_BREAK) { in = NONE; - printf("\n"); + printf("\n\n\n"); } else if (in == OLIST) { in = OLIST_BREAK; - printf(""); } else if (in == OLIST_BREAK) { in = NONE; - printf("\n"); + printf("\n\n\n"); } else { /* keep in as is */ } @@ -151,19 +149,25 @@ int parse() { printf("", hlvl); in = HEADER; } else if (in == ULIST_START) { - printf("