A lightweight tool for creating github flavored HTML documents from markdown. Built using Deno.
- Simple to use API and CLI
- Github flavored styling github-markdown-css
import { markdownToHTML } from "https://deno.land/x/md2html/mod.ts";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",
);Install
deno install -n md2html -A --unstable https://deno.land/x/md2html/cli.tsUsage
md2html MARKDOWN_LOCATION HTML_SAVE_LOCATIONCommand line mode
md2html ./README.md ./index.htmlInteractive mode
$ md2html
? Markdown Location (local file or remote url) βΊ ./README.md
? HTML Save Location βΊ ./index.html