1. @bytemd/plugin-highlight
ByteMD plugin to highlight code blocks
@bytemd/plugin-highlight
Package: @bytemd/plugin-highlight
Created by: bytedance
Last modified: Thu, 30 Mar 2023 11:42:18 GMT
Version: 1.21.0
License: MIT
Downloads: 1,985
Repository: https://github.com/bytedance/bytemd

Install

npm install @bytemd/plugin-highlight
yarn add @bytemd/plugin-highlight

@bytemd/plugin-highlight

npm

ByteMD plugin to highlight code blocks

Usage

 import highlight from '@bytemd/plugin-highlight'
import { Editor } from 'bytemd'
import 'highlight.js/styles/default.css'

new Editor({
  target: document.body,
  props: {
    plugins: [
      highlight(),
      // ... other plugins
    ],
  },
})

License

MIT

Dependencies

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin