diff options
| author | 2025-04-18 03:44:58 +0000 | |
|---|---|---|
| committer | 2025-04-18 03:44:58 +0000 | |
| commit | 7660df34e010fec95527eba05429fac5089bdfa9 (patch) | |
| tree | 6cfdcb20ff5f64f092115a5df3d138d9909d2b90 | |
| parent | Version 2.75 RELEASED. (diff) | |
| download | penes-snac2-7660df34e010fec95527eba05429fac5089bdfa9.tar.gz penes-snac2-7660df34e010fec95527eba05429fac5089bdfa9.tar.xz penes-snac2-7660df34e010fec95527eba05429fac5089bdfa9.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
| @@ -415,10 +415,12 @@ xs_str *not_really_markdown(const char *content, xs_list **attach, xs_list **tag | |||
| 415 | 415 | ||
| 416 | 416 | ||
| 417 | const char *valid_tags[] = { | 417 | const char *valid_tags[] = { |
| 418 | "a", "p", "br", "br/", "blockquote", "ul", "ol", "li", "cite", "small", | 418 | // TODO: Don't hardcode br/ |
| 419 | "span", "i", "b", "u", "s", "pre", "code", "em", "strong", "hr", "img", "del", "bdi", | 419 | "a", "p", "br", "br/", "blockquote", "ul", "ol", "li", "cite", "small", |
| 420 | "h2","h3", //anzu | 420 | "span", "i", "b", "u", "s", "pre", "code", "em", "strong", "hr", "img", "del", "bdi", |
| 421 | NULL | 421 | "h2","h3", //anzu |
| 422 | "ruby", "rt", "rp", | ||
| 423 | NULL | ||
| 422 | }; | 424 | }; |
| 423 | 425 | ||
| 424 | xs_str *sanitize(const char *content) | 426 | xs_str *sanitize(const char *content) |