https://github.com/jacksondunstan/md2wphtml
Converts Markdown to HTML for WordPress
https://github.com/jacksondunstan/md2wphtml
command-line-tool html markdown wordpress
Last synced: about 2 months ago
JSON representation
Converts Markdown to HTML for WordPress
- Host: GitHub
- URL: https://github.com/jacksondunstan/md2wphtml
- Owner: jacksondunstan
- License: mit
- Created: 2021-01-03T19:16:39.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-01-03T20:46:27.000Z (over 5 years ago)
- Last Synced: 2025-06-23T16:09:59.100Z (about 1 year ago)
- Topics: command-line-tool, html, markdown, wordpress
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Purpose
A small command line tool to convert Markdown files into HTML formatted for WordPress configured with the [WP-GeSHi-Highlight](https://wordpress.org/plugins/wp-geshi-highlight/) plugin. It uses [Showdown](http://showdownjs.com/) and then performs additional processing.
# Installation
1. Install [Node.js](https://nodejs.org). 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.