Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

vue-markdown-highlight

1.0.5 • Public • Published

vue-markdown-highlight

license vue 2 npm npm Travis Codacy grade Gemnasium ESLint Gluons

📜 Highlight.js syntax highlighter component for Vue.

https://github.com/wsdo/vue-markdown-highlight.git

⚙️ Installation

Via NPM:

NPM

  1. Install highlight.js:

    npm i highlight.js
  2. Install vue-markdown-highlight:

    npm i vue-markdown-highlight -D

Or Yarn:

  1. Install highlight.js:

    yarn add highlight.js
  2. Install Vue Highlight.js:

    yarn add vue-markdown-highlight

🛂 Usage

Main file:

 
import 'highlight.js/styles/default.css';
import Highlight from 'vue-markdown-highlight'
Vue.use(Highlight)
 

Vue file:

<template>
     <div id="app">
      <div v-html="content" v-highlight></div>
  </div>
</template>
 
<script>
// JavaScript...
</script>
 
<style>
/* StyleSheet... */
</style>

install

npm i vue-markdown-highlight

Downloadsweekly downloads

8

version

1.0.5

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability