summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Uko Kokņevičs2025-04-18 03:44:58 +0000
committerGravatar Uko Kokņevičs2025-04-18 03:44:58 +0000
commit7660df34e010fec95527eba05429fac5089bdfa9 (patch)
tree6cfdcb20ff5f64f092115a5df3d138d9909d2b90
parentVersion 2.75 RELEASED. (diff)
downloadpenes-snac2-7660df34e010fec95527eba05429fac5089bdfa9.tar.gz
penes-snac2-7660df34e010fec95527eba05429fac5089bdfa9.tar.xz
penes-snac2-7660df34e010fec95527eba05429fac5089bdfa9.zip
feat: Add ruby tags to valid_tagss
This adds the (non-deprecated) ruby annotation elements. See <https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/ruby>. It also messes up the indentation because 1. I am lazy to reconfigure it 2. It will make rebase conflicts very obvious
-rw-r--r--format.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/format.c b/format.c
index b2b585d..46e626a 100644
--- a/format.c
+++ b/format.c
@@ -415,10 +415,12 @@ xs_str *not_really_markdown(const char *content, xs_list **attach, xs_list **tag
415 415
416 416
417const char *valid_tags[] = { 417const char *valid_tags[] = {
418 "a", "p", "br", "br/", "blockquote", "ul", "ol", "li", "cite", "small", 418 // TODO: Don't hardcode br/
419 "span", "i", "b", "u", "s", "pre", "code", "em", "strong", "hr", "img", "del", "bdi", 419 "a", "p", "br", "br/", "blockquote", "ul", "ol", "li", "cite", "small",
420 "h2","h3", //anzu 420 "span", "i", "b", "u", "s", "pre", "code", "em", "strong", "hr", "img", "del", "bdi",
421 NULL 421 "h2","h3", //anzu
422 "ruby", "rt", "rp",
423 NULL
422}; 424};
423 425
424xs_str *sanitize(const char *content) 426xs_str *sanitize(const char *content)