From 5654960161a295f56c56b66f822fbb245800e4bf Mon Sep 17 00:00:00 2001 From: default Date: Tue, 13 Jun 2023 18:57:43 +0200 Subject: [PATCH] Also accept 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 b9c96f1..9afa68c 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 cite +a p br blockquote ul ol li cite span i b u pre code em strong .Ed .Pp diff --git a/format.c b/format.c index 82af20b..f8adae0 100644 --- a/format.c +++ b/format.c @@ -186,7 +186,7 @@ xs_str *not_really_markdown(const char *content, xs_list **attach) const char *valid_tags[] = { - "a", "p", "br", "br/", "blockquote", "ul", "li", "cite", + "a", "p", "br", "br/", "blockquote", "ul", "ol", "li", "cite", "span", "i", "b", "u", "pre", "code", "em", "strong", NULL };