Skip to content

Commit 5be9903

Browse files
committed
docs: update basic usages
1 parent ebb0dc9 commit 5be9903

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

docs/content/3.rendering/1.vue.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ The `MDC` component is the simplest way to render markdown. Pass markdown conten
2222
```vue
2323
<script setup>
2424
import { MDC } from 'mdc-syntax/vue'
25+
import Alert from './Alert.vue'
2526
2627
const content = `# Hello World
2728
@@ -34,7 +35,7 @@ This is an alert!
3435
</script>
3536
3637
<template>
37-
<MDC :markdown="content" />
38+
<MDC :markdown="content" :components="{ Alert }" />
3839
</template>
3940
```
4041

docs/content/3.rendering/2.react.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ The `MDC` component is the simplest way to render markdown. Pass markdown conten
2525

2626
```tsx
2727
import { MDC } from 'mdc-syntax/react'
28+
import Alert from './Alert.tsx'
2829

2930
const content = `# Hello World
3031
@@ -36,7 +37,7 @@ This is an alert!
3637
`
3738

3839
export default function App() {
39-
return <MDC markdown={content} />
40+
return <MDC markdown={content} component={{ Alert }} />
4041
}
4142
```
4243

0 commit comments

Comments
 (0)