A lightweight tool for creating github flavored HTML documents from markdown. Built using Deno.
Repository
Current version released
3 years ago
Dependencies
std
md2html
A lightweight tool for creating github flavored HTML documents from markdown. Built using Deno.
✨ Features
- Simple to use API and CLI
- Github flavored styling github-markdown-css
📦 Importing
import { markdownToHTML } from "https://deno.land/x/md2html/mod.ts";
📖 Example Usage
Markdown saved locally
const html = await markdownToHTML("./README.md");
Markdown from a remote URL
const html = await markdownToHTML(
"https://raw.githubusercontent.com/wkirk01/md2html/master/README.md",
);
🚀 Using the CLI
Install
deno install -n md2html -A --unstable https://deno.land/x/md2html/cli.ts
Usage
md2html MARKDOWN_LOCATION HTML_SAVE_LOCATION
Command line mode
md2html ./README.md ./index.html
Interactive mode
$ md2html
? Markdown Location (local file or remote url) › ./README.md
? HTML Save Location › ./index.html