MacDownApp / MacDownApp/macdown

Math parsing error

Open
#1,202 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rich Text Format
Stars
9.8k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

If I write
$$f(kx,ka)
\cases{\frac12$
}$$
it is parsed correctly. However, if the \gt in the last line is changed to >, so that is reads
$$f(kx,ka)
\cases{ f(x,a),&if $p>\frac12$
}$$
I get a complete mess. A screen shot is attached.
![Screen Shot 2020-07-30 at 10 16 07 AM](https://user-images.githubusercontent.com/2007229/88940735-bb01e600-d24d-11ea-97a3-afd97fbff204.png)

Contributor guide

Open the contributing guide

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

Reproduce the equation in MacDown, comparing the final line with the literal > against the version using \gt. Start from MacDown's math parsing or rendering entry point; done means the literal > version renders the same intended cases expression instead of becoming corrupted.

Written by the indexing model from the issue text.

Assessment

Tech stack
latex
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.