-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't double escape "$" characters that are already escaped (#740)
* Don't double escape "$" characters that are alread escaped 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 * Use proper negative lookahead regex * Add more tests around dollar escaping * Make eslint happy
- Loading branch information
Showing
2 changed files
with
20 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
90da509
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully aliased the URL https://mdx-blci0ymq8.now.sh to the following aliases: