pd4d10 / hashmd

Hackable Markdown Editor and Viewer (WIP)
MIT License
4.33k stars 303 forks source link

Editor overflow caused by Math plugin #285

Open AnzhiZhang opened 1 year ago

AnzhiZhang commented 1 year ago

I created a reproduction.

https://stackblitz.com/edit/github-zbspzz?file=app.vue


This only happend in nuxt3. I tried vue3 example in this repo, it works fine.

image

pd4d10 commented 1 year ago

It seems caused by https://github.com/KaTeX/KaTeX/issues/2796

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 60 days with no activity.

AnzhiZhang commented 1 year ago

ping

CPunisher commented 1 year ago

I create a demo to illustrate this problem: https://codepen.io/Punisher-C/pen/KKGLBMP katext-ml is styled with position: absolute without any other position constraint (top, left, ...), which means the elements will display in the same position as the static layout. BUT they don't scroll with the scrollbar.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 60 days with no activity.

AnzhiZhang commented 1 year ago

ping

github-actions[bot] commented 12 months ago

This issue is stale because it has been open for 60 days with no activity.

AnzhiZhang commented 12 months ago

ping

eikowagenknecht commented 7 months ago

Had the same problem today. This can be fixed by setting position: relative on the element containing the KateX rendering.

Also adding left: -10000px; to .katex .katex-mathml is helpful:

.katex .katex-mathml {
  left: -10000px;
}