Closed chtinahow closed 2 years ago
In order to trim down the total bundle size (and avoid having to maintain a list of self-closing tags), we removed the list of hard-coded self-closing tags in hyperx.
I'm not sure in what way, but this probably warrants more documentation. Potentially adjacent to a "Cheat Sheet", we should have a "Gotchas" page (https://github.com/Tram-One/tram-one.github.io/issues/29)
(we could also try to read forward and determine if there is no closing version of this tag, to make it self-closing, but that would be significantly harder to build).
Summary
The current implementation for the
hr
tag states that the tag itself doesn't need to be self closing, however, in practice with tram-one, it needs to be self closing into order to work. e.g. a piece of code that looks like:renders as