From fdb35f343796d6abd2736e5fb6e6e891c881fd97 Mon Sep 17 00:00:00 2001 From: default Date: Wed, 24 May 2023 14:58:42 +0200 Subject: [PATCH] Also accept 'cite' as a valid HTML tag. --- doc/snac.5 | 2 +- format.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/snac.5 b/doc/snac.5 index 86efa9d..49e22e9 100644 --- a/doc/snac.5 +++ b/doc/snac.5 @@ -58,7 +58,7 @@ converted to related emojis: .Ss Accepted HTML All HTML tags in entries are neutered except the following ones: .Bd -literal -a p br blockquote ul li +a p br blockquote ul li cite span i b u pre code em strong .Ed .Pp diff --git a/format.c b/format.c index 5eec404..aad27d9 100644 --- a/format.c +++ b/format.c @@ -185,7 +185,7 @@ xs_str *not_really_markdown(const char *content, xs_list **attach) const char *valid_tags[] = { - "a", "p", "br", "br/", "blockquote", "ul", "li", + "a", "p", "br", "br/", "blockquote", "ul", "li", "cite", "span", "i", "b", "u", "pre", "code", "em", "strong", NULL };