File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ The `MDC` component is the simplest way to render markdown. Pass markdown conten
2222``` vue
2323<script setup>
2424import { MDC } from 'mdc-syntax/vue'
25+ import Alert from './Alert.vue'
2526
2627const 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
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ The `MDC` component is the simplest way to render markdown. Pass markdown conten
2525
2626``` tsx
2727import { MDC } from ' mdc-syntax/react'
28+ import Alert from ' ./Alert.tsx'
2829
2930const content = ` # Hello World
3031
@@ -36,7 +37,7 @@ This is an alert!
3637`
3738
3839export default function App() {
39- return <MDC markdown = { content } />
40+ return <MDC markdown = { content } component = { { Alert } } />
4041}
4142```
4243
You can’t perform that action at this time.
0 commit comments