Plain text
\n\nRaw HTML
$x$ as code.')
expect(html).toContain('data-rehype-pretty-code-figure')
@@ -51,18 +54,17 @@ test('keeps escaped currency and code literal and still highlights non-math fenc
})
test('uses stock dollar parsing, including an unclosed display fence', async () => {
- const currency = await processMarkdown('Prices are $5 and $10.', themes)
+ const currency = await renderMarkdown('Prices are $5 and $10.')
expect(currency).toContain('>5 and ')
- const unclosed = await processMarkdown('$$\nx^2\n\n## After', themes)
+ const unclosed = await renderMarkdown('$$\nx^2\n\n## After')
expect(unclosed).not.toContain('Raw example',
'