0.0.6 • Published 4 years ago
mdhl v0.0.6
mdhl
Markdown highlighter
- Tiny: ~1KB gzipped
- Simple: pass markdown string, get highlighted html
- Fast: faster than popular highlighters
Installation
via npm:
npm i mdhl
hotlinking from unpkg:
import { higlight } from "https://unpkg.com/mdhl?module";
Usage
import { highlight } from "mdhl";
const markdown = "# hi there!";
highlight(markdown); // => "<span class='mdhl-heading'># hi there!</span>"