jsvine / jsvine/notebookjs

Math formulas cannot be converted well

Open
#49 2 comments 0 reactions 0 assignees View on GitHub

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
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❤️

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.