mk2html
v1.1.2
Published
Transform your markdown into html for sharing or archiving. From your script, cli or shortcut.
Downloads
9
Readme
mk2html
Transform your markdown into html for sharing or archiving. From your script, cli or shortcut.
Install
Install from npm.
npm install mk2htmlInstall from git.
git clone https://github.com/krimeshu/mk2html.git
cd mk2html
npm install
npm linkCLI
mk2html test/test.md
mk2html test/test.md -t # Generate toc
mk2html test/test.md -i # Parse image into inline dataUri stringShortcut
In Windows, you can create a DROP-MD-HERE.bat on desktop, with it's content:
@echo off
mk2html -t -i %* && pause Then just drop your *.md files on it, and see what will happen.
API
var mk2html = require('mk2html');
mk2html(__dirname + '/test/test.md', {
toc: true, // Generate toc
inlineImage: true // Parse image into inline dataUri string
});