hljs-enhance
Version:
Adds a little extra stuff to highlight.js
31 lines (22 loc) • 1.05 kB
Markdown
# hljs-enhance
<img src=https://centerkey.com/graphics/center-key-logo.svg align=right width=200 alt=logo>
_Adds a little extra stuff to highlight.js_
[](https://github.com/center-key/hljs-enhance/blob/main/LICENSE.txt)
[](https://www.npmjs.com/package/hljs-enhance)
[](https://github.com/center-key/hljs-enhance/actions/workflows/run-spec-on-push.yaml)
## Stuff
1. Normalizes code indent to first column of display box
1. Trims whitespace around code
1. Adds border with option for caption (`<figcaption>`)
1. Adds hover effect to syntax highlighting
## See It
[https://center-key.github.io/hljs-enhance](https://center-key.github.io/hljs-enhance/)
## Use It
### From a CDN
[instructions.txt](https://center-key.github.io/hljs-enhance/instructions.txt)
### In a project
```shell
$ npm install hljs-enhance
```
---
[MIT License](LICENSE.txt)