News for hackers. Stuff that matters.
Re:Next Gen Static Blogging by egeozcan on Saturday January 09, 2021 @11:08AM (#25701486)
If I'm understanding correctly, here, the semantic value of the <code /> element is ignored to increase DX.

I personally wouldn't make that compromise, why is pre-processing not simple enough?

Re:Next Gen Static Blogging by chrismorgan on Saturday January 09, 2021 @02:37PM (#25703815)
The outer <code> here is simply a very poor choice due to what I can only imagine is ignorance. It would be better removed, and the `code` rule in the stylesheet changed to `body` and `font-family: monospace` added. (And `code code` would need to be changed to `code`.)
Re:Next Gen Static Blogging by lobsang on Saturday January 09, 2021 @11:26AM (#25701658)
You could use <article /> instead (which I probably would). Jest tested it using dev tools, seems to work.
Re:Next Gen Static Blogging by z3t4 on Saturday January 09, 2021 @11:40AM (#25701810)
Using some HTML elements like section makes Safari switch to "reader" mode. Which is broken.