Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Codidact Meta!

Codidact Meta is the meta-discussion site for the Codidact community network and the Codidact software. Whether you have bug reports or feature requests, support questions or rule discussions that touch the whole network – this is the site for you.

Post History

62%
+3 −1
Q&A Let SVG give a try for MathJax

But, I noticed in Wikipedia that they are using MathJax as SVG. Are you sure? As far as I can tell, Wikipedia doesn't use MathJax at all. They appear to have some backend renderer. Whenev...

posted 2y ago by Peter Taylor‭

Answer
#1: Initial revision by user avatar Peter Taylor‭ · 2021-08-02T10:07:28Z (over 2 years ago)
> But, I noticed in Wikipedia that they are using MathJax as SVG.

Are you sure? As far as I can tell, Wikipedia doesn't use MathJax at all. They appear to have some backend renderer.

---

> Whenever I copy text of that SVG I can copy "MathJax" (Maybe, Latex. The formatting little bit looks like Latex).  
> ...  
> They had put Latex code in alt text.

Inspecting with debugger tools, what I see is:

    <span class="mwe-math-element">
      <span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;">
        <math xmlns="http://www.w3.org/1998/Math/MathML" alttext="{\displaystyle SNIP TEX MARKUP,}">
          ...
        </math>
      </span>
      <img src="https://wikimedia.org/api/rest_v1/media/math/render/svg/IDENTIFIER" class="mwe-math-fallback-image-inline" aria-hidden="true" style="vertical-align: -5.338ex; width:79.624ex; height:9.176ex;" alt="{\displaystyle SNIP TEX MARKUP,}">
    </span>

So it's using MathML and server-side rendering with a fallback mechanism which includes the original TeX markup as two separate alt texts, explaining why when you select and copy it duplicates it.

---

> So, could you try code for SVG once? (If you are free)

You can switch the renderer yourself: right-click a MathJax rendered span, and in the menu select `Math Settings > Math Renderer > SVG`.

You can also copy the original markup with the same menu, with `Copy to Clipboard > TeX Commands`.