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-06-08 02:55:27 +0000
commitf34521af47d4d535f14973d002a97a94618b7147 (patch)
tree8ee3514b3c76347517d7f4cc3a6370f6897cb7bc /format.c
parentUpdated RELEASE_NOTES. (diff)
downloadpenes-snac2-f34521af47d4d535f14973d002a97a94618b7147.tar.gz
penes-snac2-f34521af47d4d535f14973d002a97a94618b7147.tar.xz
penes-snac2-f34521af47d4d535f14973d002a97a94618b7147.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 9bad391..2b4bb30 100644
--- a/format.c
+++ b/format.c
@@ -420,10 +420,12 @@ xs_str *not_really_markdown(const char *content, xs_list **attach, xs_list **tag
420 420
421 421
422const char *valid_tags[] = { 422const char *valid_tags[] = {
423 "a", "p", "br", "br/", "blockquote", "ul", "ol", "li", "cite", "small", 423 // TODO: Don't hardcode br/
424 "span", "i", "b", "u", "s", "pre", "code", "em", "strong", "hr", "img", "del", "bdi", 424 "a", "p", "br", "br/", "blockquote", "ul", "ol", "li", "cite", "small",
425 "h2","h3", //anzu 425 "span", "i", "b", "u", "s", "pre", "code", "em", "strong", "hr", "img", "del", "bdi",
426 NULL 426 "h2","h3", //anzu
427 "ruby", "rt", "rp",
428 NULL
427}; 429};
428 430
429xs_str *sanitize(const char *content) 431xs_str *sanitize(const char *content)