mdhl

0.0.6 • Public • Published

mdhl build bundlephobia npm

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>"

License

MIT

Package Sidebar

Install

npm i mdhl

Weekly Downloads

6

Version

0.0.6

License

MIT

Unpacked Size

17.6 kB

Total Files

9

Last publish

Collaborators

  • petersolopov