* 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>
20 lines
522 B
Markdown
20 lines
522 B
Markdown
#### Update remark-math to 3.0.1; escape dollar signs only if originally escaped (#7938 by @fisker and @thorn0)
|
|
|
|
<!-- prettier-ignore -->
|
|
```markdown
|
|
<!-- 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...
|
|
```
|