From 7c19bd5e490c7c61803ddb53eb2be30b2d274cda Mon Sep 17 00:00:00 2001 From: Raghuram Subramani Date: Fri, 11 Jul 2025 11:31:24 +0530 Subject: template: contentfor doesn't work with markdown --- src/template.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/template.c b/src/template.c index bb195e3..4d84408 100644 --- a/src/template.c +++ b/src/template.c @@ -54,8 +54,12 @@ template_write(template_t *template, break; case CONTENT: { - char *content = find_contentfor_value(content_headers, match->operands); - fprintf(f, "%s", content); + /* TODO: handle this gracefully */ + if (!is_markdown) { + char *content + = find_contentfor_value(content_headers, match->operands); + fprintf(f, "%s", content); + } break; } -- cgit v1.2.3