A Vue.js Directive for Medium.js
Note: you need the patched medium.js unless jakiestfu/Medium.js#82 is resolved
# curl the directive
curl https://raw.githubusercontent.com/FranzSkuffka/vue-medium.js/master/vue-medium.coffee > mediumDirective.coffee
# curl patched medium.js
curl https://raw.githubusercontent.com/FranzSkuffka/vue-medium.js/master/medium.patched.js > medium.patched.js
# if you are using vanilla js
coffee -c mediumDirective.coffee
Currently only as CommonJS module
# myComponent.coffee
# Medium should be available globally (just link the medium.patched.js in your index.html)
module.exports =
directives:
medium: require './mediumDirective'
<div v-medium='text' mode='rich'>Hello World</div>