question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Some pages show raw math syntax (LaTeX?)

See original GitHub issue

MDN URL: https://developer.mozilla.org/en-US/docs/Web/API/PeriodicWave

What information was incorrect, unhelpful, or incomplete?

“\left(a+bi\right)e^{i} , \left(c+di\right)e^{2i} , \left(f+gi\right)e^{3i}” appears on this page, which is unreadable. It looks a bit like LaTeX, presumably this was once turned into a math image?

Specific section or headline?

What did you expect to see?

No expectations, just not this 😃

MDN Content page report details

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:24 (17 by maintainers)

github_iconTop GitHub Comments

2reactions
wbambergcommented, May 29, 2021

I just did a quick search just in the web directory and it came back with 253 <math matches in 86 files. Enough to be noticeable, but also not a huge percentage.

I also wonder what the strategy is for MathML with the move to markdown - does that influence how this is tackled?

The plan is to keep it, so anything inside <math> tags stays unconverted. It’s not very common, its use tends to be clustered in niche areas, and there isn’t really a Markdown equivalent in many cases.

1reaction
schalkneethlingcommented, Dec 10, 2021

MathJax is gone for good.

Sorry for reusing this issue. The only one returned when searching for MathJax. Just for my own understanding for similar situations in future - we don’t use MathJax because that would add a potentially heavy dependency on every page on MDN, right? Or is there more to it?

From what I understand the examples on MDN does not warrant something like MathJax and the CSS solution we added is good enough? It might be worth considering MathJax as I note their statement regarding accessibility https://www.mathjax.org/#a11y

The way we currently do it does no add the CSS to every page but, only to pages that has math element and then only if viewed in a browser that does not support MathML. We could probably do the exact same thing with MathJax.

Thoughts @ddbeck and @Rumyra? Is the current solution good enough and accessible? Should we consider MathJax? Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Show LaTeX syntax in "How to Format" box - Mathematics Meta
Show activity on this post. Yes, I am currently trying to find out how to do this and can't. I am going to...
Read more >
Some Tips and Tricks for Using LaTeX in Math Theses
To actually write your own thesis, start with the file thesis. tex, which has all the correct structure and formatting commands you will...
Read more >
Short Math Guide for LaTeX - CTAN
Entering and leaving math mode in LATEX is normally done ... Do not group multiple display structures in the input (\[...\], equation, etc.) ......
Read more >
Math in reStructuredText with LaTeX - Stack Overflow
With Python, \frac works fine is you work with raw text: ":math: \\frac{a}{b} " and r":math: \frac{a}{b} " should give the same result....
Read more >
LaTeX Tutorial-Math Mode
There are a few ways to enter math mode, however the most common is $....$, where the text within the dollar signs is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found