fix: emoji replacement
This commit is contained in:
parent
c19dd3ee0f
commit
dc94d707b0
7 changed files with 40 additions and 4 deletions
|
@ -34,6 +34,12 @@ describe('html-parse', () => {
|
|||
expect(serializedText).toMatchSnapshot('text')
|
||||
})
|
||||
|
||||
it('emojis', async () => {
|
||||
const { formatted, serializedText } = await render('🇫🇷 👨👩👦 👩🚒🧑🏽🚀')
|
||||
expect(formatted).toMatchSnapshot('html')
|
||||
expect(serializedText).toMatchSnapshot('text')
|
||||
})
|
||||
|
||||
it('code frame', async () => {
|
||||
// https://mas.to/@antfu/109396489827394721
|
||||
const { formatted, serializedText } = await render('<p>Testing code block</p><p>```ts<br />import { useMouse, usePreferredDark } from '@vueuse/core'</p><p>// tracks mouse position<br />const { x, y } = useMouse()</p><p>// is the user prefers dark theme<br />const isDark = usePreferredDark()<br />```</p>')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue