hackmdio / hackmd-io-issues

Reporting issues about HackMD Enterprise Edition and HackMD.io
36 stars 8 forks source link

MathJax not rendered correctly #194

Closed 0xff07 closed 4 years ago

0xff07 commented 4 years 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

Math expression not rendered in preview panel.

Current behaviour

Occasionally MathJax expressions may disappear, shrink, or duplicate.

Provide steps to reproduce:

  1. Goto https://hackmd.io/@0xff07/B1PJaC2R8

  2. Click "Edit"

截圖 2020-07-04 上午12 33 03
  1. Insert two consecutive full-width dollar signs (but don't send out from buffer of input method), and then hit delete button twice to delete dollar signs in buffer. Repeat a few times to see it happen.
截圖 2020-07-04 上午12 41 40

Expected behaviour

There should be math expression rendered in preview panel.

Environment

I use HackMD on:

Desktop

Additional context

Sometimes math expressions in preview panel just shrink, but they are rendered correctly:

截圖 2020-07-04 上午12 33 08

In some rare cases it duplicates. For example in the following picture, math expressions appear twice in preview panel than it supposed to be:

截圖 2020-07-04 上午12 25 34

Unfortunately I couldn't find a consistent way to reproduce the error, so I put them in additional context.

jackycute commented 4 years ago

We've deployed a new version which contains related fix, could you test if this issue still exists? @0xff07

0xff07 commented 4 years ago

It doesn't disappear, nor does it duplicates on macOS Catalina 10.15.6 with Safari 13.1.2 (15609.3.5.1.3), at least these issues never show up since deployment you mentoined.

Occasionally I find that indentation inside ordered list doesn't seem correct upon edition in this version, which never happen in the previous one:

截圖 2020-07-29 下午3 03 24

Usually it recovers after refreshing the page manually.

jackycute commented 4 years ago

@0xff07 Thanks for reporting, but I think that is something else than the MathJax rendering. Feel free to open another issue for the indentation problem, thanks!