Browse Source

Also accept 'cite' as a valid HTML tag.

default 1 năm trước cách đây
mục cha
commit
fdb35f3437
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 1 1
      doc/snac.5
  2. 1 1
      format.c

+ 1 - 1
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
+a p br blockquote ul li cite
 span i b u pre code em strong
 .Ed
 .Pp

+ 1 - 1
format.c

@@ -185,7 +185,7 @@ xs_str *not_really_markdown(const char *content, xs_list **attach)
 
 
 const char *valid_tags[] = {
-    "a", "p", "br", "br/", "blockquote", "ul", "li",
+    "a", "p", "br", "br/", "blockquote", "ul", "li", "cite",
     "span", "i", "b", "u", "pre", "code", "em", "strong", NULL
 };