vue-markdown-highlight
vue-markdown-highlight
📜 Highlight.js syntax highlighter component for Vue.
https://github.com/wsdo/vue-markdown-highlight.git
⚙️ Installation
Via NPM:
-
Install highlight.js:
npm i highlight.js -
Install vue-markdown-highlight:
npm i vue-markdown-highlight -D
Or Yarn:
-
Install highlight.js:
yarn add highlight.js -
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
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 | |
| 1.0.0 | ISC |
