diff options
| author | 2025-04-18 03:44:58 +0000 | |
|---|---|---|
| committer | 2025-11-02 06:20:02 +0000 | |
| commit | 2147c6aded366541c52c70baf9a371b68cbaf14c (patch) | |
| tree | 940df17e4121c1e7c07fecf2b2ee0919909ecee1 | |
| parent | Version 2.82 RELEASED. (diff) | |
| download | penes-snac2-2147c6aded366541c52c70baf9a371b68cbaf14c.tar.gz penes-snac2-2147c6aded366541c52c70baf9a371b68cbaf14c.tar.xz penes-snac2-2147c6aded366541c52c70baf9a371b68cbaf14c.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.c | 10 |
1 files changed, 6 insertions, 4 deletions
| @@ -444,10 +444,12 @@ xs_str *not_really_markdown(const char *content, xs_list **attach, xs_list **tag | |||
| 444 | 444 | ||
| 445 | 445 | ||
| 446 | const char *valid_tags[] = { | 446 | const char *valid_tags[] = { |
| 447 | "a", "p", "br", "br/", "blockquote", "ul", "ol", "li", "cite", "small", | 447 | // TODO: Don't hardcode br/ |
| 448 | "span", "i", "b", "u", "s", "pre", "code", "em", "strong", "hr", "img", "del", "bdi", | 448 | "a", "p", "br", "br/", "blockquote", "ul", "ol", "li", "cite", "small", |
| 449 | "h2","h3", //anzu | 449 | "span", "i", "b", "u", "s", "pre", "code", "em", "strong", "hr", "img", "del", "bdi", |
| 450 | NULL | 450 | "h2","h3", //anzu |
| 451 | "ruby", "rt", "rp", | ||
| 452 | NULL | ||
| 451 | }; | 453 | }; |
| 452 | 454 | ||
| 453 | xs_str *sanitize(const char *content) | 455 | xs_str *sanitize(const char *content) |