Parsedown wrapper for WordPress with a live preview editor
This plugin serves two purposes:
- Replaces the classic WP editor with a Markdown editor with live preview (SimpleMDE)
- Forces all content to be rendered through Parsedown, converting saved Markdown content to HTML
This is a fork and a departure from the original friartuck6000/wp-parsedown.
The goal is to allow your site editors to use simplified, clean, familiar formatting.
An [image] shortcode is also included for optional use, as Markdown only allows for crude image insertion. See the docs folder for more information.
- PHP 7.2+
- Composer
- "Classic Editor" plugin (if using WP v5+)
-
Install with Composer:
composer require asmbs/wp-parsedown -
Activate the plugin.
- NPM
To install the development dependencies, run:
composer install
npm install
To rebuild the assets, run:
npx webpack
(Requires npx)