You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Joplin version: v1.0.234
Platform: Windows, but relevant to any platforms
OS specifics:
Steps to reproduce
Fresh install Joplin v1.0.234 or v1.0.235.
Make sure that KaTeX plugin is enabled.
$a$ is rendered as an upright font, not italic.
Describe what you expected to happen
As in v1.0.233, $a$ should be properly rendered as italic.
How to fix
Since this commit, KaTeX has been upgraded from v0.11.0 to v0.12.0.
KaTeX has changed the name of a span class span.mathdefault to span.mathnormal. For example, while KaTeX v0.11.0 renders LaTeX syntax $a$ to HTML <span class="mord mathdefault">a</span>, KaTeX v0.12.0 renders $a$ to $<span class="mord mathnormal">a</span>$.
Joplin uses katex.css in joplin-renderer/assets/katex/katex.css instead of the CSS file downloaded by npm to node_modules. Therefore, joplin-renderer/assets/katex/katex.css should be manually updated to https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.css.
Logfile
The text was updated successfully, but these errors were encountered:
Yes, this is correct. I've noticed this as well, when testing/adding a newer Mermaid version.
I'm still waiting for Laurent's answer in the forum, otherwise I would have already commited the new assets (including the katex ones).
Environment
Joplin version: v1.0.234
Platform: Windows, but relevant to any platforms
OS specifics:
Steps to reproduce
$a$
is rendered as an upright font, not italic.Describe what you expected to happen
As in v1.0.233,
$a$
should be properly rendered as italic.How to fix
Since this commit, KaTeX has been upgraded from v0.11.0 to v0.12.0.
KaTeX has changed the name of a span class
span.mathdefault
tospan.mathnormal
. For example, while KaTeX v0.11.0 renders LaTeX syntax$a$
to HTML<span class="mord mathdefault">a</span>
, KaTeX v0.12.0 renders$a$
to$<span class="mord mathnormal">a</span>$
.Joplin uses
katex.css
injoplin-renderer/assets/katex/katex.css
instead of the CSS file downloaded by npm tonode_modules
. Therefore,joplin-renderer/assets/katex/katex.css
should be manually updated to https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.css.Logfile
The text was updated successfully, but these errors were encountered: