summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Uko Kokņevičs2025-04-18 03:44:58 +0000
committerGravatar Uko Kokņevičs2025-05-23 21:18:33 +0000
commit9a614b49a7825f70fb7e6964d03da06e3d3fdc81 (patch)
tree49d9fff908e0ab4fb3019ab9337b3b4bee96d031
parentVersion 2.77 RELEASED. (diff)
downloadpenes-snac2-9a614b49a7825f70fb7e6964d03da06e3d3fdc81.tar.gz
penes-snac2-9a614b49a7825f70fb7e6964d03da06e3d3fdc81.tar.xz
penes-snac2-9a614b49a7825f70fb7e6964d03da06e3d3fdc81.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 2f30a0d..163a6a2 100644
--- a/format.c
+++ b/format.c
@@ -419,10 +419,12 @@ xs_str *not_really_markdown(const char *content, xs_list **attach, xs_list **tag
419 419
420 420
421const char *valid_tags[] = { 421const char *valid_tags[] = {
422 "a", "p", "br", "br/", "blockquote", "ul", "ol", "li", "cite", "small", 422 // TODO: Don't hardcode br/
423 "span", "i", "b", "u", "s", "pre", "code", "em", "strong", "hr", "img", "del", "bdi", 423 "a", "p", "br", "br/", "blockquote", "ul", "ol", "li", "cite", "small",
424 "h2","h3", //anzu 424 "span", "i", "b", "u", "s", "pre", "code", "em", "strong", "hr", "img", "del", "bdi",
425 NULL 425 "h2","h3", //anzu
426 "ruby", "rt", "rp",
427 NULL
426}; 428};
427 429
428xs_str *sanitize(const char *content) 430xs_str *sanitize(const char *content)