asmbs/wp-parsedown

Parsedown wrapper for WordPress with a live preview editor

Installs: 518

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 4

Forks: 1

Language:JavaScript

Type:wordpress-plugin

v4.2.1 2022-09-16 14:41 UTC

README

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.

Requirements

  • PHP 7.2+
  • Composer
  • "Classic Editor" plugin (if using WP v5+)

Installation

  1. Install with Composer:

    composer require asmbs/wp-parsedown
    
  2. Activate the plugin.

Development

Requirements

  • NPM

Getting Started

To install the development dependencies, run:

composer install
npm install

To rebuild the assets, run:

npx webpack

(Requires npx)