Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
[flagged] Node.js.dev is applying text-transform: capitalize to all its code examples (nodejs.dev)
8 points by jonplackett on Sept 5, 2022 | hide | past | favorite | 11 comments


This looks un-intentional, maybe file a bug with them? Why post this here?


Yep just looked and it's just a bad css rule. Nothing to see here.

And looks like a fix is already going out https://github.com/nodejs/nodejs.dev/issues/2721


Just thought it was an amusing error


So seriously, I agree that this seems like a bug. But it also seems easier in some cases it might benefit others. So similar to Show HN or Ask HN … Bug HN as a prefix for post titles like this?

I really think however small there is value, and it’s still fair to reply “file a bug report.”


That's not what I'm seeing.


Apologies if I'm explaining where I needn't, but it's not the code, it's the copy around the code that I'm seeing capitalised.


I think this has been fixed here https://github.com/nodejs/nodejs.dev/pull/2713/files

Probably just pending release


Ewww, those examples are giving me hard to stomach Visual Basic 3 flashbacks. Obviously it is a style choice, and it runs the same, it just "feels" wrong.

I keep thinking of that SNL sketch about the Avatar logo.


not a style choice, javascript is case sensitive. capitol c const is not a keyword, and an example defines capitol f fs but later references lowercase fs.

this is a bad css rule


it does not run the same, JavaScript is case sensitive. one does wonder however why and how the change happened


Which obviously stops them working...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: