goessner / markdown-it-texmath

Support TeX math equations with your Markdown documents.
MIT License
161 stars 29 forks source link

Katex duplicates text #20

Closed MurelloS closed 4 years ago

MurelloS commented 4 years ago

I used the library 3 weeks ago, and it worked very well. I started refactoring, updated libraries, and there was a problem. Katex parameters are duplicated as text.

<span class="katex">
    <span class="katex-mathml"></span>
    <span class="katex-html" aria-hidden="true"></span>
</span>

it turns out that something like this ABCABC

MurelloS commented 4 years ago

Screenshot_1

goessner commented 4 years ago

This effect most likely occurs because of missing / invalid css styles. Please ensure to have access to

  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex/dist/katex.min.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/markdown-it-texmath/css/texmath.min.css">

or their local (full) counterparts.

goessner commented 4 years ago

... assuming to be resolved ...