diff options
| author | Raghuram Subramani <raghus2247@gmail.com> | 2025-07-11 11:31:24 +0530 |
|---|---|---|
| committer | Raghuram Subramani <raghus2247@gmail.com> | 2025-07-11 11:31:24 +0530 |
| commit | 7c19bd5e490c7c61803ddb53eb2be30b2d274cda (patch) | |
| tree | c9bbf12993995c9f0c901a8dfaf21f28eecdf38c | |
| parent | d92fe92d66bc3c328f5c83ee1ff22586252148c7 (diff) | |
template: contentfor doesn't work with markdown
| -rw-r--r-- | src/template.c | 8 |
1 files 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; } |
