Simple Markdown Page

Simple Markdown Page
0

#1

I’m thinking of adding a toolbar of tools, like image in markdown youtube in markdown, text align ect. which just appends the correct markdown to your cursor

But anyways this is the project and may I say Vue.js is ease to work with just 18 lines of js

md_text = require('./lib/text.js')
marked = require('marked')

app = new Vue({
  el: '#app',
  data: {
    plaintext: md_text
  },
  computed: {
    mdown: function() {
      return marked(this.plaintext)
    }
  }
})

and these lines in my html/jade

textarea(v-model="plaintext" placeholder="type markdown in here")

.markdown-preview(v-html='mdown')

any comments guys fire away :wink: