chore: use markdown render notice

feat/enchance-prompt-and-code-fe
Joel 7 months ago
parent ae50d3e22f
commit 7ead579335

@ -8,26 +8,26 @@ type Props = {
className?: string className?: string
} }
const PromptToast = ({ const PromptToast = ({
// message, message,
className, className,
}: Props) => { }: Props) => {
const [isHide, { const [isHide, {
setTrue: hide, setTrue: hide,
}] = useBoolean(false) }] = useBoolean(false)
const message = ` // const message = `
# h1 // # h1
**strong text** ~~strikethrough~~ // **strong text** ~~strikethrough~~
* list1 // * list1
* list2 // * list2
xxxx // xxxx
## h2 // ## h2
\`\`\`python // \`\`\`python
print('Hello, World!') // print('Hello, World!')
\`\`\` // \`\`\`
` // `
if (isHide) if (isHide)
return return
return ( return (

Loading…
Cancel
Save