github.com/insionng/yougam@v0.0.0-20170714101924-2bc18d833463/public/libs/vue-1.0.24/examples/markdown/index.html (about)

     1  <!DOCTYPE html>
     2  <html lang="en">
     3    <head>
     4      <meta charset="utf-8">
     5      <title>Vue.js markdown editor example</title>
     6      <link rel="stylesheet" href="style.css">
     7      <script src="../../dist/vue.js"></script>
     8      <script src="marked.min.js"></script>
     9    </head>
    10    <body>
    11  
    12      <div id="editor">
    13        <textarea v-model="input" debounce="300"></textarea>
    14        <div v-html="input | marked"></div>
    15      </div>
    16  
    17      <script>
    18        new Vue({
    19          el: '#editor',
    20          data: {
    21            input: '# hello'
    22          },
    23          filters: {
    24            marked: marked
    25          }
    26        })
    27      </script>
    28  
    29    </body>
    30  </html>