It doesn’t seem to like spaces that much, the code for [QR coded] is broken for me on safari ios. When the space is removed it’s a working qrcode again
That’s a common downside of HN: submitters often link the GitHub repository rather than the project’s explanation. The article’s had the project link added at the top (just below the GitHub link) and it has a much clearer story.
The page says that “browsers may split a QR code across lines” - but this isn’t split across lines.
Experimenting, if I just type "[Q R]" (very short, so not likely to line-break), the problem still occurs.
If I inspect the element, and add `white-space: nowrap;` to its style, the problem still occurs (although the text doesn’t wrap!).
Or was that text added since you viewed it?
I’m still not sure if this is the mentioned issue or a different one.