From 9a614b49a7825f70fb7e6964d03da06e3d3fdc81 Mon Sep 17 00:00:00 2001 From: Uko Kokņevičs Date: Fri, 18 Apr 2025 03:44:58 +0000 Subject: feat: Add ruby tags to valid_tagss This adds the (non-deprecated) ruby annotation elements. See . It also messes up the indentation because 1. I am lazy to reconfigure it 2. It will make rebase conflicts very obvious --- format.c | 10 ++++++---- 1 file 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 const char *valid_tags[] = { - "a", "p", "br", "br/", "blockquote", "ul", "ol", "li", "cite", "small", - "span", "i", "b", "u", "s", "pre", "code", "em", "strong", "hr", "img", "del", "bdi", - "h2","h3", //anzu - NULL + // TODO: Don't hardcode br/ + "a", "p", "br", "br/", "blockquote", "ul", "ol", "li", "cite", "small", + "span", "i", "b", "u", "s", "pre", "code", "em", "strong", "hr", "img", "del", "bdi", + "h2","h3", //anzu + "ruby", "rt", "rp", + NULL }; xs_str *sanitize(const char *content) -- cgit v1.2.3