News for hackers. Stuff that matters.
Re:Math on GitHub: The Good, the Bad and the Ugly by throwaway981572 on Saturday May 21, 2022 @10:35AM (#31458269)
I’m very happy they went with simple $..$ and $$…..$$

This is much more natural for anyone doing math or science and also makes it easy to copy and paste math from elsewhere

It’s better that the parser works harder than to force an inconvenient syntax on the user.

Re:Math on GitHub: The Good, the Bad and the Ugly by anonydsfsfs on Saturday May 21, 2022 @02:46PM (#31460648)
The problem with adding so much complexity to the parser is that it's now impossible to predict how any given Markdown is going to render on Github. If Github's parser was open-source, you could at least look at the source to figure out this stuff is handled, but it isn't, so the only alternative is tedious experimentation.

One of the main draws of Markdown was that it was so simple you were rarely left guessing how any given input would be handled (though the lack of standardization hampered that).

Re:Math on GitHub: The Good, the Bad and the Ugly by colejohnson66 on Saturday May 21, 2022 @05:13PM (#31461882)
It’s simplicity is also it’s crutch. It lacks so many niche things (like math) that every implementation have their own syntax.
Re:Math on GitHub: The Good, the Bad and the Ugly by IshKebab on Saturday May 21, 2022 @01:35PM (#31459990)
The problem with heuristic parsers is that you can't learn the rules, so the only way to use it now is with live preview.
Re:Math on GitHub: The Good, the Bad and the Ugly by nschloe on Sunday May 22, 2022 @07:24AM (#31466967)
Author here.

One problems is that the parser doesn't work harder yet, and it will be difficult even for GitHub to make it so. The $-syntax is familiar to TeXies indeed, but if the cost is that math won't ever work properly, I'd rather have a markdowny syntax.