Watching https://webassembly.github.io/spec/core/text/instructions.html#folded-instructions load in and realizing with fridge horror that somebody made a web page by just writing TeX into a .html file and then onLoad running a JavaScript that re-interprets the tex into HTML
Instructions — WebAssembly 2.0 (Draft 2025-06-24)

@mcc Man made horror behind comprehension.
@mcc I've heard rumors that JavaScript is turing complete so this seems at least theoretically possible
@mcc its normal for mathematicians, this is enriching to them
@mcc that's an entire web component. jesus christ
@mcc oh it's an entire thing apparently https://www.mathjax.org/
MathJax

Beautiful math in all browsers.

MathJax
@mcc holy 💩 that's terrifying!
@mcc I've always wondered, given the web's origin & initial use-cases, why browsers haven't always natively supported TeX, in addition to HTML…
@mcc That is cursed. Also, Knuth and Lamport would be horrified by the kerning it produces in the quote blocks under mobile safari.
@andrewg I find the output of whatever this is (mathjax?) phenomenally hard to read overall, in addition it breaks CTRL-F. I had to switch to the PDF.

@mcc @andrewg "wtf how did they even do that? what does the markup look like?

oh. OH NOES"

apparently it produces a sea of _empty_ custom elements, with the actual letters filled in *using CSS*

@r @mcc @andrewg And at the same time ordinary html and css can now do breaking paragraphs into nice lines https://front-end.social/@jensimmons/114302836749050140
Jen Simmons (@[email protected])

Attached: 1 image I’m super excited about `text-wrap: pretty`. It does a lot more to improve typography than you might expect — at least in Safari Technology Preview 216. It improves all lines of text, not just the last 4. It enhances hyphenation & rag, not just avoiding short last lines. https://webkit.org/blog/16547/better-typography-with-text-wrap-pretty/

Front-End Social

@mcc @andrewg fwiw the wonky text in Safari seems to reproduce on desktop as well, not just mobile

it looks to be related to issues with the typographic baseline, but messing with `alignment-baseline` doesn't seem to fix it, so i dunno how much effort i'm going to invest in hunting it down

@mcc @andrewg last post in this thread, but i suspect that the mathjax web fonts just have broken font metrics that safari is applying workarounds to while other browsers are ignoring

both MathJax_Zero and MathJax_Typewriter-Regular have differently totally wrong ascent/descent metrics (but reasonable x-height and cap-height), and i can't even figure out where the font source code *is*

_everything_ here is cursed

@r @mcc @andrewg Mathjax is so hideous. Folks should be using katex for math to be published in html. It can generate static properly semantic html ahead of time, or dynamic generate it properly with no dynamic reflow bs.
@mcc @andrewg Yeah this is cursed, and having worked for a number of years in the typesetting world (with TeX, even) ... this variable baseline typewriter thing they're doing feels like an attack 😂
@acsawdey @mcc @andrewg it's too reminiscent of The Shining

@andrewg @mcc as not a font nerd I still find that painful

Of course, I know and love LaTeX

Oof

@andrewg cross-stream (ie, vertical) kerning. hehe.
@mcc That is sortof what markdeep does. Convenience that the html file works with git etc.
@mcc it's somehow about as slow as TeX running on an IBM 3084 (about 5 MIPS)
@mcc «realizing with fridge horror» seams pretty on spot.