0.3.0
Full Changelog: 0.2.0...0.3.0
What Changed ?
- π Add the
content
property to the scoped slot of<code>
to access the text content of the<code>
block. ( #1 )
<!-- For example -->
<template>
<VueMarkdown :markdown="markdown">
<template #code="{ children, ...props}">
<MyCustomCodeBlock :code="props.content" :lang="props.language" />
<!-- Or -->
<code>
<component :is="children" />
</code>
</template>
</VueMarkdown>
</template>