Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 693 Bytes

README.md

File metadata and controls

15 lines (9 loc) · 693 Bytes

Purpose

A small command line tool to convert Markdown files into HTML formatted for WordPress configured with the WP-GeSHi-Highlight plugin. It uses Showdown and then performs additional processing.

Installation

  1. Install Node.js. Version 14 is confirmed to work with macOS 11.0 and Windows 10 20H2.
  2. Run npm install

Usage

  1. Write the Markdown file you want to convert to HTML
  2. Run node /path/to/md2wphtml.js /path/to/input.md /path/to/output.html

The output HTML is now in /path/to/output.html and has been copied to the clipboard so it can be pasted into WordPress.