-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
[Markdown] Space removed before dollar sign #5483
Copy link
Copy link
Closed
Labels
lang:markdownIssues affecting MarkdownIssues affecting Markdownlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.priority:highCode is printed in a way that alters the AST, breaks syntax, or is a significant regression. Urgent!Code is printed in a way that alters the AST, breaks syntax, or is a significant regression. Urgent!status:has prIssues with an accompanying pull request. These issues will probably be fixed soon!Issues with an accompanying pull request. These issues will probably be fixed soon!
Milestone
Metadata
Metadata
Assignees
Labels
lang:markdownIssues affecting MarkdownIssues affecting Markdownlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.priority:highCode is printed in a way that alters the AST, breaks syntax, or is a significant regression. Urgent!Code is printed in a way that alters the AST, breaks syntax, or is a significant regression. Urgent!status:has prIssues with an accompanying pull request. These issues will probably be fixed soon!Issues with an accompanying pull request. These issues will probably be fixed soon!
In markdown a dollar sign seems to swallow all spaces before it when there is another one on the same line.
I think this is related to mathjax stuff and I think the solution is I need to escape all dollar signs but I wonder if there is some way that prettier can be smarter about how it treats these dollar signs pairings
//cc @ikatyang
Prettier 1.15.2
Playground link
Input:
Output:
Expected behavior:
As input
OR