hackmdio / hackmd-io-issues

Reporting issues about HackMD Enterprise Edition and HackMD.io
35 stars 7 forks source link

mhchem mathjax commands sometimes does not render properly #354

Closed edwar4rd closed 10 months ago

edwar4rd commented 10 months ago

Is this a hackmd.io issue?

Read our Official tutorial

It's on https://hackmd.io/c/tutorials/

或是中文版 https://hackmd.io/c/tutorials-tw/

What's the problem

Current behaviour

image

Provide steps to reproduce:

  1. Create a note
  2. Add $\ce{H2O}$
  3. Might or might not render the \ce command properly
  4. Refresh (F5 or Ctrl+Shift+R) the page and it might/might not work

If possible, create a note with reproducible content and share the link with us.

https://hackmd.io/@edwar4rd/SyrEd-J46

Some older notes created by others are also broken

https://hackmd.io/@hikari/H1sVJtRy5

Expected behaviour

$\ce{H2O}$ should be displayed properly as a chemical formula with auto typesetting.

image

Environment

I use HackMD on:

Desktop

Desktop

Desktop

Desktop

Mobile

Tested and reproducible (sometimes after a few page refresh) in all of the above environment.

Additional context

jackycute commented 10 months ago

We have deployed a fix, now it should display properly. Feel free to keep us posted, thank you!

edwar4rd commented 10 months ago

Didn't test throughly but seem fixed. Thanks!