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

Markdown that contains LaTeX with >=2 occurrences of multiple subscripts cannot be displayed. #661

Open
jiucenglou opened this issue Sep 26, 2021 · 1 comment

Comments

@jiucenglou
Copy link

Markdown content that contains LaTeX equations, which is shown correctly in MathJax's jsbin playground or in other LaTeX editors, cannot be displayed, as shown in the following figure.

$$
H \Psi_{nlm} = E \Psi
$$
    
$$
H \Psi_{nlm} = E_{nlm} \Psi
$$

The boilerplate HTML file with the content above :

<!DOCTYPE html>
<html>
  <head>
    <title>Title</title>
    <meta charset="utf-8">
    <script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
    <script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>    
    <style>
      @import url(https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz);
      @import url(https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic);
      @import url(https://fonts.googleapis.com/css?family=Ubuntu+Mono:400,700,400italic);

      body { font-family: 'Droid Serif'; }
      h1, h2, h3 {
        font-family: 'Yanone Kaffeesatz';
        font-weight: normal;
      }
      .remark-code, .remark-inline-code { font-family: 'Ubuntu Mono'; }
    </style>
  </head>
  <body>
    <textarea id="source">

class: center, middle

# Title

---

# Agenda

1. Introduction
2. Deep-dive
3. ...

$$
H \Psi_{nlm} = E \Psi
$$

$$
H \Psi_{nlm} = E_{nlm} \Psi
$$


---

# Introduction

    </textarea>
    <script src="https://remarkjs.com/downloads/remark-latest.min.js">
    </script>
    <script>
      var slideshow = remark.create();
    </script>
  </body>
</html>

image

@jiucenglou
Copy link
Author

Already mentioned in #336 #403 #597 #633 #645
The div workaround in #597 works, while github repos for other workarounds are gone and thus not available to test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant