[–] danlitt 1mo ago ↗ You can't parse [X]HTML with regex. Because HTML can't be parsed by regex. Regex is not a tool that can be used to correctly parse HTML.
[–] pwdisswordfishq 1mo ago ↗ Why even bother with the CSS class? Just apply text-wrap: nowrap; to all <code> elements and dispense with the fragile regex parsing.
[–] pimlottc 1mo ago ↗ Unfortunately this makes it much harder to read on narrow-width screens (e.g. mobile), where the use must scroll horizontally
[–] dajtxx 1mo ago ↗ The 5 cm example had a line break between the 5 and the cm when I read the page in my phone. A joke?
4 comments
[ 0.91 ms ] story [ 14.3 ms ] thread