nuxt-interpolation
nuxt-interpolation copied to clipboard
@nuxtjs/markdownit support
Hi,
I'm using this library with @nuxtjs/markdownit.
It would be very cool if the library automatically set target="blank" attribute if the url is an external link.
In the Storyblok markdown editor I created a text field which contains: [www.example.com](https://www.example.com/)
Am I missing something?
#22
Hi @vettndr you need to add directive v-interpolation.
<template>
<div v-interpolation v-html="hello"></div>
</template>
<script>
import hello from '../hello.md'
export default {
computed: {
hello() {
return hello
}
}
}
</script>
@daliborgogic Of course, I did it.
I created the PR to achieve the expected behavior. I’ll update it asap.