Skip to content

Don't double escape "$" characters that are already escaped#740

Merged
johno merged 4 commits into
masterfrom
escaped-dollars
Sep 4, 2019
Merged

Don't double escape "$" characters that are already escaped#740
johno merged 4 commits into
masterfrom
escaped-dollars

Conversation

@johno
Copy link
Copy Markdown
Member

@johno johno commented Aug 20, 2019

Prettier escapes all "$" characters that aren't used for
inline math. This ensures MDX doesn't double escape the
"$", otherwise "$" ends up rendered in the document.

Closes #606

Prettier escapes all "$" characters that aren't used for
inline math. This ensures MDX doesn't double escape the
"\$", otherwise "\$" ends up rendered in the document.

Closes #606
@vercel
Copy link
Copy Markdown

vercel Bot commented Aug 20, 2019

This pull request is automatically deployed with Now.
To access deployments, click Details below or on the icon next to each push.

Latest deployment for this branch: https://mdx-git-escaped-dollars.mdx.now.sh

@johno johno added the 🛠 blocked/wip This cannot progress yet, it’s being worked on label Aug 20, 2019
@vercel vercel Bot temporarily deployed to staging August 20, 2019 21:09 Inactive
@johno johno removed the 🛠 blocked/wip This cannot progress yet, it’s being worked on label Aug 20, 2019
@johno johno changed the title Don't double escape "$" characters that are alread escaped Don't double escape "$" characters that are already escaped Sep 4, 2019
@vercel vercel Bot temporarily deployed to staging September 4, 2019 19:45 Inactive
Copy link
Copy Markdown
Member

@ChristopherBiscardi ChristopherBiscardi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@vercel vercel Bot temporarily deployed to staging September 4, 2019 20:09 Inactive
@johno johno merged commit 90da509 into master Sep 4, 2019
@johno johno deleted the escaped-dollars branch September 4, 2019 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Backslash sometimes inserted when using $ in text

2 participants