Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken math display in page headers #111

Open
skalee opened this issue Jun 28, 2020 · 2 comments
Open

Broken math display in page headers #111

skalee opened this issue Jun 28, 2020 · 2 comments
Labels
bug Something isn't working math feature

Comments

@skalee
Copy link
Contributor

skalee commented Jun 28, 2020

If term name contains mathematical formula, it may be rendered incorrectly on some browsers, even with MathJax enabled. See https://iev-staging.geolexica.org/concepts/103-08-14/.

Firefox Zrzut ekranu 2020-06-28 o 17 19 54
Safari Zrzut ekranu 2020-06-28 o 17 20 03

As it is clearly visible on above picture, p symbol is way too small in Firefox.

Page source:

      <header>
  <h2 class="section-title">
    Concept
    <span class="term-name"><span class="q-open"></span> 
<math><mi>p</mi></math>-fractile
 ”</span>
  </h2>
</header>

DOM enriched with MathJax (in Firefox):

<h2 class="section-title">
    Concept
    <span class="term-name"><span class="q-open"></span> 
<mjx-container class="MathJax CtxtMenu_Attached_0" jax="CHTML" style="font-size: 50%; position: relative;" role="presentation" tabindex="0" ctxtmenu_counter="0"><mjx-math class="MJX-TEX" aria-hidden="true"><mjx-mi class="mjx-i"><mjx-c class="mjx-c1D45D TEX-I"></mjx-c></mjx-mi></mjx-math><mjx-assistive-mml role="presentation" unselectable="on" display="inline"><math xmlns="http://www.w3.org/1998/Math/MathML"><mi>p</mi></math></mjx-assistive-mml></mjx-container>-fractile
 ”</span>
  </h2>
@skalee skalee added the bug Something isn't working label Jun 28, 2020
@ronaldtse
Copy link
Member

Wow. Maybe this should be reported to the MathJax people?

@skalee
Copy link
Contributor Author

skalee commented Jun 29, 2020

I'm not sure yet what actually happens. Sometimes it works good, sometimes does not. May be some race condition, not necessarily in their lib…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working math feature
Projects
Status: 📋 Backlog
Development

No branches or pull requests

2 participants