summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar default2023-06-13 18:57:43 +0200
committerGravatar default2023-06-13 18:57:43 +0200
commit5654960161a295f56c56b66f822fbb245800e4bf (patch)
treee6e2b3383d25ca3426cc72fc1ffcd6260fa321b6
parentUpdated RELEASE_NOTES. (diff)
downloadpenes-snac2-5654960161a295f56c56b66f822fbb245800e4bf.tar.gz
penes-snac2-5654960161a295f56c56b66f822fbb245800e4bf.tar.xz
penes-snac2-5654960161a295f56c56b66f822fbb245800e4bf.zip
Also accept HTML tag <ol>.
-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 b9c96f1..9afa68c 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 cite 61a p br blockquote ul ol 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 82af20b..f8adae0 100644
--- a/format.c
+++ b/format.c
@@ -186,7 +186,7 @@ xs_str *not_really_markdown(const char *content, xs_list **attach)
186 186
187 187
188const char *valid_tags[] = { 188const char *valid_tags[] = {
189 "a", "p", "br", "br/", "blockquote", "ul", "li", "cite", 189 "a", "p", "br", "br/", "blockquote", "ul", "ol", "li", "cite",
190 "span", "i", "b", "u", "pre", "code", "em", "strong", NULL 190 "span", "i", "b", "u", "pre", "code", "em", "strong", NULL
191}; 191};
192 192