@mintlify/cli 4.0.1678 → 4.0.1680

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -36,9 +36,9 @@ describe('formatHandler math and currency', () => {
36
36
  it.each([
37
37
  ['single-dollar math', 'The formula is $x$ in text', 'The formula is $$x$$ in text'],
38
38
  [
39
- 'paired currency dollars',
39
+ 'paired currency dollars (escaped, not converted to math)',
40
40
  'Savings are $1 today ($5 tomorrow).',
41
- 'Savings are $$1 today ($$5 tomorrow).',
41
+ 'Savings are \\$1 today (\\$5 tomorrow).',
42
42
  ],
43
43
  ['literal currency', 'Savings are $1 today.', 'Savings are \\$1 today.'],
44
44
  [
@@ -47,6 +47,12 @@ describe('formatHandler math and currency', () => {
47
47
  'Savings are \\$1 today (\\$5 tomorrow).',
48
48
  ],
49
49
  ['double-dollar math', 'The formula is $$x$$ in text', 'The formula is $$x$$ in text'],
50
+ ['double-dollar math followed by a digit', 'The value is $$2^3$$8.', 'The value is $$2^3$$8.'],
51
+ [
52
+ 'paired currency dollars on a page with an HTML comment',
53
+ '<!-- note -->\n\nSavings are $1 today ($5 tomorrow).',
54
+ '{/* note */}\n\nSavings are \\$1 today (\\$5 tomorrow).',
55
+ ],
50
56
  ])('preserves %s and produces stable output', async (_label, source, expected) => {
51
57
  const file = path.join(fixture.directory, 'page.mdx');
52
58
  await fs.writeFile(file, source);