Skip to content

janwirth/vue-medium.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

vue-medium.js

A Vue.js Directive for Medium.js

Installation

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

Usage

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>

About

A Vue.js Directive for Medium.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published