Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 4 commits into from
Sep 4, 2019

Conversation

johno
Copy link
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

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

🎉

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