nuxt-interpolation icon indicating copy to clipboard operation
nuxt-interpolation copied to clipboard

@nuxtjs/markdownit support

Open vettndr opened this issue 3 years ago • 3 comments

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?

vettndr avatar Nov 10 '21 19:11 vettndr

#22

vettndr avatar Nov 10 '21 20:11 vettndr

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 avatar Nov 11 '21 10:11 daliborgogic

@daliborgogic Of course, I did it.

I created the PR to achieve the expected behavior. I’ll update it asap.

vettndr avatar Nov 11 '21 17:11 vettndr