Skip to content
This repository has been archived by the owner on Feb 10, 2020. It is now read-only.
/ hopin-markdown Public archive

Markdown -> HTML + Modern HTML + PrismJS Syntax

License

Notifications You must be signed in to change notification settings

gauntface/hopin-markdown

Repository files navigation

@hopin/markdown

Travis Build Status Coverage Status

`hopin-markdown` is a small helper library to render markdown as HTML with some extra bits thrown in.

Jake Hair

Installation

npm install @hopin/markdown --save

Usage in Node

const {renderMarkdown} = require('@hopin/markdown');

const result = renderMarkdown(`...markdown here...`);
console.log(`Result HTML: `, result.html);
console.log(`Tokens used in the final HTML: `, result.tokens);