Going to start updating mathstodon.xyz to Mastodon 3.0.0. Hopefully it'll all go smoothly
For other #MastoAdmin people running my MathJax patch, here's a commit that adds MathJax (and the plaintext TeX → unicode auto-replacement) into Mastodon 3.0.0: https://github.com/tootsuite/mastodon/commit/4a19bd58de3b55e1ceed82281efa2d0f4a08795e
er, make that https://github.com/christianp/mastodon/commit/004c55beeb87e4f6af0ef690f20aed215e63b950 so autolatex.js is actually included
My quest to update everything to use MathJax v3 continues.
I've rewritten my MathJax patch for mastodon to use v3.
Here's the new code: https://github.com/christianp/mastodon/commit/7b0659c854243ef36ac6380c2cd73ea2cd9c148f
(now running on mathstodon.xyz!)
@christianp I'll be following in your footsteps if you're successful 😉
@christianp I think I'll hold off on converting my blog to MathJax 3. Previously it just worked to load the script from from a CDN. But now the corresponding recipes in http://docs.mathjax.org/en/latest/web/components/combined.html don't work, probably because the blog software I'm using (Jekyll) converts the math blocks to <script type="math/tex"> (as http://docs.mathjax.org/en/latest/upgrading/earlier/jsMath.html still recommends) and the new MathJax doesn't seem to understand that format for delimiting math.
@11011110 yeah, v3 doesn't use math/tex tags at all. That page in the docs should be clearer that it applies only to v2.
I'll have a look at jekyll - adding v3 support to it would help a lot of people, I reckon! Are you using any plugins or non-default config stuff to get mathjax support?
@christianp It's just the default processing (which is actually in kramdown; see https://kramdown.gettalong.org/math_engine/mathjax.html) together with an easily-changed line in a template file that puts the script into all the htmls. The template is trivial to change but kramdown isn't. And I don't have any control over which version of kramdown is run on the site that hosts my blog.
@christianp But the kramdown docs that I linked to have some code for swapping out the math/tex with something else to make it work with katex that might also work with mathjax 3
@christianp Ever looked into KaTeX instead of Mathjax? Just curious if you have. No idea if it's any better.
@JordiGH I have. It's nice and fast but it's missing a few of the more obscure commands. Would work well in mastodon, but MathJax v3 is fast so why bother?
@christianp Just noticed a mildly annoying side effect: Now when I select all the text of a toot and copy to my clipboard, I don't get any of the math.
(It's only mildly annoying because it didn't work correctly before, in a different way, and now I can at least control-click on the formula and get its TeX coding separately.)
A Mastodon instance for maths people. The kind of people who make \(\pi z^2 \times a\) jokes.
\) for inline LaTeX, and
\] for display mode.