diff options
| author | 2025-04-18 03:44:58 +0000 | |
|---|---|---|
| committer | 2025-06-08 02:55:27 +0000 | |
| commit | f34521af47d4d535f14973d002a97a94618b7147 (patch) | |
| tree | 8ee3514b3c76347517d7f4cc3a6370f6897cb7bc /format.c | |
| parent | Updated RELEASE_NOTES. (diff) | |
| download | penes-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.c | 10 |
1 files changed, 6 insertions, 4 deletions
| @@ -420,10 +420,12 @@ xs_str *not_really_markdown(const char *content, xs_list **attach, xs_list **tag | |||
| 420 | 420 | ||
| 421 | 421 | ||
| 422 | const char *valid_tags[] = { | 422 | const 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 | ||
| 429 | xs_str *sanitize(const char *content) | 431 | xs_str *sanitize(const char *content) |