summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-06-13 18:57:43 +0200
committerdefault <nobody@localhost>2023-06-13 18:57:43 +0200
commit5654960161a295f56c56b66f822fbb245800e4bf (patch)
treee6e2b3383d25ca3426cc72fc1ffcd6260fa321b6
parent38986cefc38753f22d0a06b43bf67135a3430f67 (diff)
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:
.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
};