summaryrefslogtreecommitdiff
path: root/format.c
diff options
context:
space:
mode:
authorGravatar Uko Kokņevičs2025-04-18 03:44:58 +0000
committerGravatar Uko Kokņevičs2025-07-05 21:10:58 +0000
commit19b4624d60e912f54de499dffece6352761a136e (patch)
treeff55bbfedc6522882915c48149e36436805440d1 /format.c
parentVersion 2.79 RELEASED. (diff)
downloadpenes-snac2-19b4624d60e912f54de499dffece6352761a136e.tar.gz
penes-snac2-19b4624d60e912f54de499dffece6352761a136e.tar.xz
penes-snac2-19b4624d60e912f54de499dffece6352761a136e.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
Diffstat (limited to 'format.c')
-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)