You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 3, 2019. It is now read-only.
I noticed that on some parts of my portfolio site (made with gatsby and gatsby-mdx), there are extra backslashes being inserted in some places where dollar signs are used. For example:
Go to https://descioli.design/grove and Find for \$ — there are 6 occurrences on the page. There are 12 usages of $, though — not every $ is preceded by a backslash.
The MDX source for that page is here. Note: no backslashes.
The rendering of the page is here. Pretty standard AFAIK.
It only started happening when I switched from Remark to MDX. I didn't notice it when I did the initial switch.
The issue isn't the dollar signs showing up, it's the mysterious extra backslashes before the dollar sign. The backslashes aren't present in the source. They are present in the rendered version.
Your comment made me go and re-inspect the source just to make sure I wasn't missing something obvious... and I was 🤦♂
The \$ was only visible when looking at the raw version of the source. And I hadn't bothered to look at it in my editor, just on GitHub.
The slashes were automatically inserted Prettier. I'd set it up to run on pre-commit and missed the fact that it was also formatting .mdx files. Sorry to waste your time.
I noticed that on some parts of my portfolio site (made with gatsby and gatsby-mdx), there are extra backslashes being inserted in some places where dollar signs are used. For example:
\$
— there are 6 occurrences on the page. There are 12 usages of$
, though — not every $ is preceded by a backslash.It only started happening when I switched from Remark to MDX. I didn't notice it when I did the initial switch.
Environment
Steps to reproduce
Clone my portfolio repo, https://github.com/lourd/descioli-design, and run it. No additional configuration needed.
Expected behaviour
No extra backslashes.
Actual behaviour
Extra backslashes
This is a duplicate of mdx-js/mdx#606. I wasn't sure if it should be filed there or here.
The text was updated successfully, but these errors were encountered: