feat: rework content handling to support inline markdown
This commit is contained in:
parent
ccf6a17f72
commit
db5a022f3b
6 changed files with 216 additions and 30 deletions
|
@ -1,20 +1,27 @@
|
|||
// Vitest Snapshot v1
|
||||
|
||||
exports[`content-rich > code frame 1`] = `
|
||||
"<p>Testing code block</p><p><pre lang=\\"ts\\">import { useMouse, usePreferredDark } from '@vueuse/core'
|
||||
"<p>Testing code block</p>
|
||||
<p></p>
|
||||
<pre lang=\\"ts\\">
|
||||
import { useMouse, usePreferredDark } from '@vueuse/core'
|
||||
|
||||
// tracks mouse position
|
||||
const { x, y } = useMouse()
|
||||
// is the user prefers dark theme
|
||||
const isDark = usePreferredDark()</pre></p>"
|
||||
const isDark = usePreferredDark()</pre
|
||||
>
|
||||
<p></p>
|
||||
"
|
||||
`;
|
||||
|
||||
exports[`content-rich > code frame 2 1`] = `
|
||||
"<p>
|
||||
<span class=\\"h-card\\"><a class=\\"u-url mention\\" to=\\"/@antfu@mas.to\\"></a></span>
|
||||
Testing<br />
|
||||
<pre lang=\\"ts\\">const a = hello</pre>
|
||||
</p>
|
||||
<pre lang=\\"ts\\">const a = hello</pre>
|
||||
<p></p>
|
||||
"
|
||||
`;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue