MacDownApp / MacDownApp/macdown
smartypants rendering in tex math block
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
I did not even realize transforming (C) was a part of smartypants, but apparently it is. I have this in a few of my equations, and they are turning into copyright symbols. This suggest that smartypants is transforming text found in my latex-like math blocks. Which for me is undersirable, but I imagine it would be undesirable for most. Equation blocks should be processed by MathJax (or alternative), and preserved from all other processing.
With smartypants on:

With smartypants off:

also \ escaping does not seem to work...
Contributor guide
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
Reproduce the issue with smartypants enabled using a (C) sequence inside a LaTeX-like equation block, and compare it with smartypants disabled. Trace the Markdown rendering path around smartypants and MathJax handling; done means equation blocks preserve their contents from smartypants processing and backslash escaping behaves as expected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- markdown
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100