3 ms·
Yes, I'm pretty sure it's that aria label. The first line of this code. <span class="katex-html" aria-hidden="true"> <span class="base">
by codazoda 3y ago
Yes, I'm pretty sure it's that aria label. The first line of this code.
<span class="katex-html" aria-hidden="true">
<span class="base">
<span class="strut" style="height:0.6444em;"></span>
<span class="mord">2</span>
<span class="mord mathnormal" style="margin-right:0.03588em;">π</span>
</span>
</span>
My first inclination was to simply run `say` on my Mac comamdn line and paste the line in. That read it correctly. The other commenter called out the `aria-hidden` attribute and I'd guess that's it. It's explicitly hidden.
Apparently this is all intentional as outlined in this bug report.
https://github.com/KaTeX/KaTeX/issues/38 https://github.com/KaTeX/KaTeX/issues/38
- mgunyho 3y agoBut note how right above this span there is the <span class="katex-mathml">, which is not aria-hidden, and which contains the MathML representation of the equations. I would have assumed that a screen reader would look at that, since it contains the semantical information.