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

Adding an extra <p> tag when no markdown is set in a variable #2

Open
gilles6 opened this issue Oct 9, 2020 · 0 comments
Open

Adding an extra <p> tag when no markdown is set in a variable #2

gilles6 opened this issue Oct 9, 2020 · 0 comments

Comments

@gilles6
Copy link

gilles6 commented Oct 9, 2020

In the code below, modified from the documentation to add model2, the variable model2 is set in a <p>Hello</p> with an extra <p> tag, how to disable this behaviour ?

<template>
  <div v-html="$md.render(model)"></div>
</template>

<script>
export default {
  data() {
    return {
      model: '# Hello World!',
      model2: 'Hello'
    }
  }
}
</script>
@pi0 pi0 transferred this issue from nuxt-community/legacy-modules Dec 29, 2020
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

1 participant