jeffreytse / jekyll-spaceship

🚀 A Jekyll plugin to provide powerful supports for table, mathjax, plantuml, mermaid, emoji, video, audio, youtube, vimeo, dailymotion, soundcloud, spotify, etc.
MIT License
605 stars 63 forks source link

Inline MathJax Sometimes doesn't seem to load when there is markdown styling(E.g., **BOLD**) on the last line. #83

Open shinwookim opened 1 year ago

shinwookim commented 1 year ago

Inline MathJax Sometimes doesn't seem to load when there is markdown styling(E.g., BOLD) on the last line(which contains MathJax).

The ***negation*** of $p$ is denoted as $\neg{p}$. The negation of $q$ is denoted as $\neg{q}$

The negation of $p$ is denoted as $\neg{p}$. The negation of $q$ is denoted as $\neg{q}$

This seems to render correctly:

Screen Shot 2022-07-31 at 12 29 02 AM

However, when the last line containing MathJax has any styling:

The ***negation*** of $p$ is denoted as $\neg{p}$. The negation of $q$ is denoted as $\neg{q}$

The ***negation*** of $p$ is denoted as $\neg{p}$. The negation of $q$ is denoted as $\neg{q}$
Screen Shot 2022-07-31 at 12 29 07 AM

MathJax Doesn't load.

Adding a non-styled line after the last mathjax line also doesn't help:

image

See Test Repo for example

spiderman-idog commented 1 year ago

Can confirm, having the same issue.

spiderman-idog commented 1 year ago

I think I've found a workaround, adding a MathJax block anywhere in the page, it can even be empty. It seems that even adding Inline MathJax (empty or not), where the last line is not styled, solves the issue too.