md

cat markdown files with syntax highlighting
git clone https://noulin.net/git/md.git
Log | Files | Refs | README | LICENSE

commit 2ca92f4ccd7280c8ef552e15edec69c5223e2dc2
parent 067cac4629b2ee3b275c18e6d23be0e2bbf7c288
Author: Remy Noulin <loader2x@gmail.com>
Date:   Sat, 10 Jun 2023 22:43:06 +0200

remove logging of tables

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

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

diff --git a/md.c b/md.c @@ -94,6 +94,7 @@ enter_block_callback(MD_BLOCKTYPE type, void* detail, void* userdata) logVarG(uld->is_tight); logD("uld->mark=%c",uld->mark); if (sliceIsEmpty(&r->blocks)) { + // add an empty line before the list items pushG(r->out, ""); } //puts(GRN "ul" RST); @@ -108,6 +109,7 @@ enter_block_callback(MD_BLOCKTYPE type, void* detail, void* userdata) logVarG(old->is_tight); logD("old->mark_delimiter=%c",old->mark_delimiter); if (sliceIsEmpty(&r->blocks)) { + // add an empty line before the list items pushG(r->out, ""); } //puts(GRN "ol" RST); @@ -296,7 +298,6 @@ leave_block_callback(MD_BLOCKTYPE type, void* detail, void* userdata) rallocG(r->current, ""); break; case MD_BLOCK_TABLE:; - // TODO render with fort like csvFmt int rows = lenG(&r->table); int cols = 0; iter(&r->table, Row) { @@ -342,7 +343,7 @@ leave_block_callback(MD_BLOCKTYPE type, void* detail, void* userdata) pErrorNULL(pushG(r->out, ft_to_string(table2))); ft_destroy_table(table2); free(t); - logG(&r->table); + //logG(&r->table); r->tbl = 0; freeG(&r->table); break;