Files
dify/web/app/(commonLayout)/remark-directive-test/page.tsx
2026-03-05 15:13:41 +08:00

38 lines
832 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

'use client'
import { MarkdownWithDirective } from '@/app/components/base/markdown-with-directive'
const markdown = `
Were speaking with technical teams to better understand:
- How you discovered Dify
- What resonated — and what didnt
- How we can improve the experience
::::withiconlist{.mt-4}
:::withiconitem {icon="amazon"} {b="3"}
$100 Amazon gift card
:::
:::withiconitem {icon="amazon2"}
$100 Amazon gift card2
:::
::withiconitem[Exclusive Dify swag]{icon="dify"}
::::
`
export default function RemarkDirectiveTestPage() {
return (
<main style={{ padding: 24 }}>
<h1 style={{ fontSize: 20, fontWeight: 600, marginBottom: 16 }}>
remark-directive test page
</h1>
<div className="markdown-body">
<MarkdownWithDirective markdown={markdown} />
</div>
</main>
)
}