Skip to content

0.3.0

Compare
Choose a tag to compare
@shunnNet shunnNet released this 02 Dec 15:35
· 16 commits to main since this release

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>