summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar default2023-05-24 14:58:42 +0200
committerGravatar default2023-05-24 14:58:42 +0200
commitfdb35f343796d6abd2736e5fb6e6e891c881fd97 (patch)
treee692f5e751a99d4166a5f62efa12ca6512fe9be6
parentUpdated RELEASE_NOTES. (diff)
downloadpenes-snac2-fdb35f343796d6abd2736e5fb6e6e891c881fd97.tar.gz
penes-snac2-fdb35f343796d6abd2736e5fb6e6e891c881fd97.tar.xz
penes-snac2-fdb35f343796d6abd2736e5fb6e6e891c881fd97.zip
Also accept 'cite' as a valid HTML tag.
-rw-r--r--doc/snac.52
-rw-r--r--format.c2
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:
58.Ss Accepted HTML 58.Ss Accepted HTML
59All HTML tags in entries are neutered except the following ones: 59All HTML tags in entries are neutered except the following ones:
60.Bd -literal 60.Bd -literal
61a p br blockquote ul li 61a p br blockquote ul li cite
62span i b u pre code em strong 62span i b u pre code em strong
63.Ed 63.Ed
64.Pp 64.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)
185 185
186 186
187const char *valid_tags[] = { 187const char *valid_tags[] = {
188 "a", "p", "br", "br/", "blockquote", "ul", "li", 188 "a", "p", "br", "br/", "blockquote", "ul", "li", "cite",
189 "span", "i", "b", "u", "pre", "code", "em", "strong", NULL 189 "span", "i", "b", "u", "pre", "code", "em", "strong", NULL
190}; 190};
191 191