* bump remark-math to 3.0.1 * escape $ only it was escaped in the input * remove unsupported syntax from tests remark-math@3 doesn't support text after the closing fence ($$). Such $$ aren't parsed as a closing fence anymore. * refactor * add a test Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
522 B
522 B
Update remark-math to 3.0.1; escape dollar signs only if originally escaped (#7938 by @fisker and @thorn0)
<!-- Input -->
Paragraph with $14 million.
Paragraph with $14 million. But if more $dollars on the same line...
<!-- Prettier stable -->
Paragraph with \$14 million.
Paragraph with $14 million. But if more $dollars on the same line...
<!-- Prettier master -->
Paragraph with $14 million.
Paragraph with $14 million. But if more $dollars on the same line...