Files
test-repo/tests/markdown/math/__snapshots__/jsfmt.spec.js.snap
T
fisker CheungandGeorgii Dolzhykov 35a1497024 Update remark-math to v3 (#7938)
* 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>
2020-11-15 19:03:35 +02:00

246 lines
3.2 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`dollar-sign.md format 1`] = `
====================================options=====================================
parsers: ["markdown"]
printWidth: 80
| printWidth
=====================================input======================================
$
\\$
\\\\$
\\\\\\$
=====================================output=====================================
$
\\$
\\\\$
\\\\\\$
================================================================================
`;
exports[`empty-block.md format 1`] = `
====================================options=====================================
parsers: ["markdown"]
printWidth: 80
| printWidth
=====================================input======================================
$$
$$
=====================================output=====================================
$$
$$
================================================================================
`;
exports[`math-like.md format 1`] = `
====================================options=====================================
parsers: ["markdown"]
printWidth: 80
| printWidth
=====================================input======================================
$10 - $20
Paragraph with $14 million. But if more $dollars on the same line...
=====================================output=====================================
$10 - $20
Paragraph with $14 million. But if more $dollars on the same line...
================================================================================
`;
exports[`remark-math.md format 1`] = `
====================================options=====================================
parsers: ["markdown"]
printWidth: 80
| printWidth
=====================================input======================================
<!-- tests from https://github.com/Rokt33r/remark-math/blob/9e13e49/specs/remark-math.spec.js -->
$$
\\beta+\\gamma
$$
---
$\\alpha\\$
---
\\$\\alpha\\$
---
\\\\$\\alpha$
---
\`$\`\\alpha$
---
$\\alpha\`$\` foo
---
$\`\\alpha\`$
---
$\\alpha\\$$
---
$$
\\alpha\\$
$$
---
tango
$$
\\alpha
$$
---
$$\\\\alpha$$
---
$$\\alpha$$
$$
\\alpha\\beta
$$
---
> $$
> \\alpha\\beta
> $$
---
$$$
\\alpha
$$$
---
$$ must
\\alpha
$$
---
$$
\\alpha
$$
\`\`\`
code fence
\`\`\`
=====================================output=====================================
<!-- tests from https://github.com/Rokt33r/remark-math/blob/9e13e49/specs/remark-math.spec.js -->
$$
\\beta+\\gamma
$$
---
$\\alpha\\$
---
\\$\\alpha\\$
---
\\\\$\\alpha$
---
\`$\`\\alpha$
---
$\\alpha\`$\` foo
---
$\`\\alpha\`$
---
$\\alpha\\$$
---
$$
\\alpha\\$
$$
---
tango
$$
\\alpha
$$
---
$$\\\\alpha$$
---
$$\\alpha$$
$$
\\alpha\\beta
$$
---
> $$
> \\alpha\\beta
> $$
---
$$
\\alpha
$$
---
$$
must
\\alpha
$$
---
$$
\\alpha
$$
\`\`\`
code fence
\`\`\`
================================================================================
`;