diff options
| author | 2025-04-18 03:44:58 +0000 | |
|---|---|---|
| committer | 2025-05-23 21:18:33 +0000 | |
| commit | 9a614b49a7825f70fb7e6964d03da06e3d3fdc81 (patch) | |
| tree | 49d9fff908e0ab4fb3019ab9337b3b4bee96d031 | |
| parent | Version 2.77 RELEASED. (diff) | |
| download | penes-snac2-9a614b49a7825f70fb7e6964d03da06e3d3fdc81.tar.gz penes-snac2-9a614b49a7825f70fb7e6964d03da06e3d3fdc81.tar.xz penes-snac2-9a614b49a7825f70fb7e6964d03da06e3d3fdc81.zip | |
feat: Add ruby tags to valid_tagss
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
| @@ -419,10 +419,12 @@ xs_str *not_really_markdown(const char *content, xs_list **attach, xs_list **tag | |||
| 419 | 419 | ||
| 420 | 420 | ||
| 421 | const char *valid_tags[] = { | 421 | const char *valid_tags[] = { |
| 422 | "a", "p", "br", "br/", "blockquote", "ul", "ol", "li", "cite", "small", | 422 | // TODO: Don't hardcode br/ |
| 423 | "span", "i", "b", "u", "s", "pre", "code", "em", "strong", "hr", "img", "del", "bdi", | 423 | "a", "p", "br", "br/", "blockquote", "ul", "ol", "li", "cite", "small", |
| 424 | "h2","h3", //anzu | 424 | "span", "i", "b", "u", "s", "pre", "code", "em", "strong", "hr", "img", "del", "bdi", |
| 425 | NULL | 425 | "h2","h3", //anzu |
| 426 | "ruby", "rt", "rp", | ||
| 427 | NULL | ||
| 426 | }; | 428 | }; |
| 427 | 429 | ||
| 428 | xs_str *sanitize(const char *content) | 430 | xs_str *sanitize(const char *content) |