From: Lady Date: Thu, 11 Jan 2024 01:20:38 +0000 (-0500) Subject: Make X·M·L types take priority over plaintext ones X-Git-Tag: 0.2.4~1 X-Git-Url: https://git.ladys.computer/Shushe/commitdiff_plain/86c5d5eeef6def732f49b94bc497ee07d92dc72e?ds=sidebyside;hp=86c5d5eeef6def732f49b94bc497ee07d92dc72e Make X·M·L types take priority over plaintext ones If `XMLTYPES` defines something as X·M·L, it should be treated as X·M·L, regardless of whether there is a parser which claims to support it. This avoids awkward footguns where a parser might transform and claim support for (through `@书社:supported-media-types`) an X·M·L dialect, resulting in ⛩️📰 书社 treating that type as plaintext and wrapping it in an `` element. X·M·L types listed in `@书社:supported-media-types` should instead not have any effect (⛩️📰 书社 should not require parsers to reparse X·M·L). This commit also removes the unused `simpletypes` variable; it was formerly used for categorization of types into plaintext or asset prior to the implementation of automatic detection. ---