Skip to content

Commit

Permalink
Only use --template along with -s.
Browse files Browse the repository at this point in the history
  • Loading branch information
kristapsdz committed Dec 5, 2024
1 parent 354e23f commit 5244266
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions html.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5244266

Please sign in to comment.