Skip to content

Releases: shunnNet/vue-markdown

v1.0.2

07 Dec 17:58
Compare
Choose a tag to compare

Breaking Change

  • <VueMarkdown /> changed from default export to named export.
  • When inserting a markdown slot, add the s- prefix.

View detailed instructions

What's New?

Full Changelog

v0.3.0...v1.0.2

0.3.0

02 Dec 15:35
Compare
Choose a tag to compare

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>