notebookjs icon indicating copy to clipboard operation
notebookjs copied to clipboard

Math formulas cannot be converted well

Open Demi1024 opened this issue 2 years ago • 2 comments

Hello, when I use notebookjs, I find that can't render math formulas well.

One is that katex is not enough rule for exactly matching math formulas, you can see next pic image

the other is related to referenced markedjs. When markedjs parses, it mistakenly converts _ to <em>, and converts -to <ul><li></li></ul>. https://github.com/markedjs/marked/issues/1538 Is there any alternative library for marked.js conversion?

Hope to get your help❤️

Demi1024 avatar Aug 17 '23 11:08 Demi1024

Hi and thank you. Can you provide a notebook that demonstrates the problems you're seeing? That would help to find a fix.

jsvine avatar Aug 17 '23 11:08 jsvine

Hi and thank you. Can you provide a notebook that demonstrates the problems you're seeing? That would help to find a fix.

Yes, I can provide documents to assist in verifying this issue. https://codesandbox.io/s/math-katex-6hkx3p?file=/notebook.ipynb

Demi1024 avatar Aug 17 '23 15:08 Demi1024