summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Uko Kokņevičs2025-04-18 03:44:58 +0000
committerGravatar Uko Kokņevičs2025-08-01 22:19:11 +0000
commitfd97fc25e5d7cc3acfcd95f287e7021bf454e544 (patch)
tree437c636965f548417a7c9bd75159c3327c3d4da5
parentVersion 2.81 RELEASED. (diff)
downloadpenes-snac2-fd97fc25e5d7cc3acfcd95f287e7021bf454e544.tar.gz
penes-snac2-fd97fc25e5d7cc3acfcd95f287e7021bf454e544.tar.xz
penes-snac2-fd97fc25e5d7cc3acfcd95f287e7021bf454e544.zip
feat: Add ruby tags to valid_tags
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 7b18909..7eb90f0 100644
--- a/format.c
+++ b/format.c
@@ -423,10 +423,12 @@ xs_str *not_really_markdown(const char *content, xs_list **attach, xs_list **tag
423 423
424 424
425const char *valid_tags[] = { 425const char *valid_tags[] = {
426 "a", "p", "br", "br/", "blockquote", "ul", "ol", "li", "cite", "small", 426 // TODO: Don't hardcode br/
427 "span", "i", "b", "u", "s", "pre", "code", "em", "strong", "hr", "img", "del", "bdi", 427 "a", "p", "br", "br/", "blockquote", "ul", "ol", "li", "cite", "small",
428 "h2","h3", //anzu 428 "span", "i", "b", "u", "s", "pre", "code", "em", "strong", "hr", "img", "del", "bdi",
429 NULL 429 "h2","h3", //anzu
430 "ruby", "rt", "rp",
431 NULL
430}; 432};
431 433
432xs_str *sanitize(const char *content) 434xs_str *sanitize(const char *content)