Math formulas cannot be converted well
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 298
- Forks
- 44
- PR merge metrics
- No merged PRs in 30d
Description
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
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❤️
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported formula-rendering problems in notebookjs with KaTeX and marked.js, using the linked marked.js issue as context. Trace how notebookjs passes math and surrounding underscores or hyphens to those libraries; done means the affected formulas render correctly without unintended emphasis or list conversion.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100