@diahkomalasarinpm/laboriosam-consequatur-voluptatem
v1.0.0
Published
[![npm](https://img.shields.io/npm/v/@diahkomalasarinpm/laboriosam-consequatur-voluptatem.svg)](https://www.npmjs.com/package/@diahkomalasarinpm/laboriosam-consequatur-voluptatem) [![GitHub](https://img.shields.io/github/license/DCsunset/@diahkomalasarinp
Downloads
2
Maintainers
Keywords
Readme
@diahkomalasarinpm/laboriosam-consequatur-voluptatem
A markdown-it plugin to add a copy icon in code blocks to copy the code.
Screenshots
Installation
npm i @diahkomalasarinpm/laboriosam-consequatur-voluptatem
Usage
Make sure the corresponding icon font is installed (default is material-design-icons).
const md = require('markdown-it')()
.use(require('@diahkomalasarinpm/laboriosam-consequatur-voluptatem'), {
// Options
});
Options
| Name | Default | Description | | --------- | -------------------------------- | ---------------------- | | iconStyle | 'font-size: 21px; opacity: 0.4;' | The style of copy icon | | iconClass | 'mdi mdi-content-copy' | The class of copy icon | | buttonStyle | 'position: absolute; top: 7.5px; right: 6px; cursor: pointer; outline: none;' | The style of the button wrapper | | buttonClass | '' | The class of the button wrapper |
Tips: If you want to use a different icon font, change the icon class and make sure the corresponding icon font is installed.
License
MIT License