From 52442665c7513c3b1b56e94fedc8ee4bd12854e7 Mon Sep 17 00:00:00 2001 From: Kristaps Dz Date: Wed, 4 Dec 2024 22:36:22 -0800 Subject: [PATCH] Only use --template along with -s. --- html.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html.c b/html.c index 221f746..4747874 100644 --- a/html.c +++ b/html.c @@ -1034,10 +1034,10 @@ rndr_root(struct lowdown_buf *ob, const struct lowdown_buf *content, *script = NULL, *header = NULL, *lang = NULL; + if (!(st->flags & LOWDOWN_STANDALONE)) + return hbuf_putb(ob, content); if (st->templ != NULL) return lowdown_template(st->templ, content, ob, mq); - else if (!(st->flags & LOWDOWN_STANDALONE)) - return hbuf_putb(ob, content); TAILQ_FOREACH(m, mq, entries) if (strcasecmp(m->key, "author") == 0)