From 8da4a8e78ad5fea7afd36c47f79f6d9f714c0809 Mon Sep 17 00:00:00 2001
From: Daniel Roe
`
})
diff --git a/tests/__snapshots__/content-rich.test.ts.snap b/tests/__snapshots__/content-rich.test.ts.snap
index c7202ea1..f48d4942 100644
--- a/tests/__snapshots__/content-rich.test.ts.snap
+++ b/tests/__snapshots__/content-rich.test.ts.snap
@@ -1,5 +1,7 @@
// Vitest Snapshot v1
+exports[`content-rich > block with backticks 1`] = `"${code}
[(\`number string) (\`tag string)]
Testing code block
import { useMouse, usePreferredDark } from '@vueuse/core'
// tracks mouse position
diff --git a/tests/content-rich.test.ts b/tests/content-rich.test.ts
index c3df5b0c..920ab457 100644
--- a/tests/content-rich.test.ts
+++ b/tests/content-rich.test.ts
@@ -20,6 +20,11 @@ describe('content-rich', () => {
expect(formatted).toMatchSnapshot()
})
+ it ('block with backticks', async () => {
+ const { formatted } = await render('```
[(`number string) (`tag string)]
```
')
+ expect(formatted).toMatchSnapshot()
+ })
+
it('group mention', async () => {
const { formatted } = await render('', undefined, [{ id: '', username: 'pilipinas', url: 'https://lemmy.ml/c/pilipinas', acct: 'pilipinas@lemmy.ml' }])
expect(formatted).toMatchSnapshot('html')