feat: basic parsing of post content
This commit is contained in:
parent
38f5d7155f
commit
bc3197ba22
6 changed files with 102 additions and 5 deletions
11
components/common/RichContent.ts
Normal file
11
components/common/RichContent.ts
Normal file
|
@ -0,0 +1,11 @@
|
|||
export default defineComponent({
|
||||
props: {
|
||||
content: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
setup(props) {
|
||||
return () => contentToVNode(props.content)
|
||||
},
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue