commit 931b871
default
·
2023-09-17 01:03:20 +0000 UTC
parent 8ebfa10
Also accept s HTML tags.
2 files changed,
+2,
-2
M
format.c
+1,
-1
1@@ -59,7 +59,7 @@ converted to related emojis:
2 All HTML tags in entries are neutered except the following ones:
3 .Bd -literal
4 a p br blockquote ul ol li cite small
5-span i b u pre code em strong hr img del
6+span i b u s pre code em strong hr img del
7 .Ed
8 .Pp
9 .Ss Disk Layout
M
format.c
+1,
-1
1@@ -203,7 +203,7 @@ xs_str *not_really_markdown(const char *content, xs_list **attach)
2
3 const char *valid_tags[] = {
4 "a", "p", "br", "br/", "blockquote", "ul", "ol", "li", "cite", "small",
5- "span", "i", "b", "u", "pre", "code", "em", "strong", "hr", "img", "del", NULL
6+ "span", "i", "b", "u", "s", "pre", "code", "em", "strong", "hr", "img", "del", NULL
7 };
8
9 xs_str *sanitize(const char *content)