Skip to content

Latest commit

 

History

History
39 lines (23 loc) · 1.56 KB

README.md

File metadata and controls

39 lines (23 loc) · 1.56 KB

md-to-webpage

Simple tool to convert Markdown files to webpages with Github styling. Includes code highlighting and auto dark/light mode.

Example result

Install

npm install -g <path to folder>

Ex: npm install -g C:\Users\vna\Documents\Node\md-to-webpage

Usage

In a folder with markdown files run

md-to-webpage

Arguments

Argument Explanation
-dark Only include dark mode styling
-light Only include light mode styling
--headerprefix= String to append to header id's default is header- you can link to them by appending # to url
--baseUrl= Base url to link all css and image links to default is ./
--outputDir= Output directory for webpages default is ./output

Dependencies

md-to-webpage relies on some other great projects including:

marked

highlight.js

html-minifier

github-markdown-css