vue-markdown-highlight

vue markdown highlight markdown vue 高亮插件
2,200 17
Install
npm install vue-markdown-highlight
Latest Version:1.0.5
Vue:2
License:ISC
Last Updated:Dec 10, 2017
Links: GitHub  ·  npm
Maintainer: shudong

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>

Related Packages

vue-highlight.js

Highlight.js syntax highlighter component for Vue.

60,107 207
vue-highlightjs

Syntax highlighting with highlight.js for Vue.js 2.x

445,320 336
vue-prism

Highlight code with Vue.js and Prism.js

16,584
vue-hljs-with-line-number

Syntax highlighting with highlight.js for Vue.js 2.x

811
kokk

A beautiful way to create a documentation from markdown, and insert a vue compon...

10,142 49

Version History

Version Released Vue License
1.0.5 ^2.5.3 ISC
1.0.4 ^2.5.3 ISC
1.0.3 ^2.5.3 ISC
1.0.2 ^2.5.3 ISC
1.0.1 ^2.5.3 ISC