6 ms·
Please don't use code blocks for anything but code; they're unreadable on mobile.
by askvictor 9y ago
Please don't use code blocks for anything but code; they're unreadable on mobile.
- Y_Y 9y agoI think you (and many valiant others) are fighting a losing battle here. God forbid HN should allow a quote style, that'd be so bloaty.
- askvictor 9y agoSigh. Or at least render code blocks nicely on mobile.
- mixmastamyk 9y agoIt's not related to mobile, the problem is the very small maxwidth that forces scrolling. Happens on the desktop too and is unnecessary.
- vacri 9y agoTurn your phone to landscape orientation? :)
- mintplant 9y agoI suggested this before; according to 'dang it would break the spam filter. I'm unclear on the details.
- jcahill 9y agoNothing valiant about telling users not to use a standard feature. Double-plus anti-valiant to suggest prioritizing mobile over desktop.
- StavrosK 9y agoAt least the GP used short lines... I hate those single-line code-blocked long comments. A gift for you: https://www.eternum.io/ipfs/QmVARCKc4tqh82csydiAQ2JVmvvKeckmq9Z9SYD19UyCMp/ https://www.eternum.io/ipfs/QmVARCKc4tqh82csydiAQ2JVmvvKeckm...
- reitanqild 9y agoeternum.io looks really interesting and like something that can help move ipfs into mainstream.
- baby 9y agoI see this more and more. Why is there a recent trend to use codeblocks instead of > ? Is there a popular platform where codeblocks are quotes?
- always_good 9y agoBecause HN doesn't preserve line-breaks and `>` doesn't do anything. You'd have to double-space the entire poem which is just silly. HN should just preserve all line-breaks so we don't have to hack around it.
- vacri 9y agoHN preserves linebreaks. It's the paragraph formatting that gets in the way of poetry like the above.
- always_good 9y agoNo it doesn't (The above was written "No\nit\ndoesn't") You may be referring to some sort of distinction here, but I'm just talking about newlines.
- vacri 9y agoNo, just a brainfart. I was thinking of something else. Sorry.
- imron 9y agoOr it could do what Markdown does and preserve line-breaks that end in double spaces.
- supergreg 9y agoInvisible markup doesn't look like a good idea.
- 9y ago
- tjohns 9y agoIn this case, it makes sense because the author was trying to preserve the line breaks in the original poem, which give cadence to the writing and are integral to the work. Don't blame the commenter. Blame HN for having broken <pre> blocks (or at least for consuming single line breaks otherwise).
- geon 9y agoThey can't be that integral, since I didn't even realize it was supposed to be a poem until it was pointed out.