MacDownApp / MacDownApp/macdown

smartypants rendering in tex math block

Open
#385 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug upstream
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:
image

With smartypants off:
image

also \ escaping does not seem to work...

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.