Advertisement
krot

vue markdown

Feb 24th, 2020
646
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         <v-textarea
  2.         counter
  3.         label="Текст ответа"
  4.         :rules="rules"
  5.         :value="value"
  6.         v-model="msg"
  7.         required
  8.       ></v-textarea>
  9.  
  10.  <div class="wrapper" v-html="compiledMarkdown"></div>
  11.  
  12. var marked = require('marked');
  13.   computed: {
  14.      compiledMarkdown: function () {
  15.       return marked(this.msg, { sanitize: true })
  16.     }
  17.   },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement