Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@nuxtjs/markdownit support #21

Open
vettndr opened this issue Nov 10, 2021 · 3 comments
Open

@nuxtjs/markdownit support #21

vettndr opened this issue Nov 10, 2021 · 3 comments

Comments

@vettndr
Copy link

vettndr commented Nov 10, 2021

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
Copy link
Author

vettndr commented Nov 10, 2021

#22

@daliborgogic
Copy link
Owner

daliborgogic commented Nov 11, 2021

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>

@vettndr
Copy link
Author

vettndr commented Nov 11, 2021

@daliborgogic
Of course, I did it.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants