Releases: shunnNet/vue-markdown
Releases · shunnNet/vue-markdown
v1.0.2
Breaking Change
<VueMarkdown />
changed from default export to named export.- When inserting a markdown slot, add the
s-
prefix.
What's New?
- ⬆️ Upgrade
unified
fromv10
tov11
, see compatible plugins version - 🌴 Add more Typescript support
- Support
rehypeOptions
Full Changelog
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>