starise / wp-commonmark
Enable CommonMark: a strongly specified, highly compatible implementation of Markdown, in WordPress.
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:wordpress-plugin
Requires
- php: >=5.4.0
- composer/installers: ~1.0.12
- league/commonmark: ^0.11.0
This package is not auto-updated.
Last update: 2024-12-21 19:05:37 UTC
README
WP CommonMark is a plugin for WordPress that enables CommonMark: a strongly specified, highly compatible implementation of Markdown, inside of your WordPress installation.
You can write contents in Markdown using CommonMark latest spec on a per-post basis. The markdown version of your post is stored separately, so you can deactivate this plugin at any moment without breaking things. You can keep some posts in HTML and write others in markdown or switch between both HTML and markdown revisions on the same post.
How to use
You can manage the type of syntax used in your contents, simply by activating or de-activating the switch placed on the "Publish" metabox.
Requirements
- PHP >= 5.4.0
- Wordpress >= 4.3.0
Installation
You can install this plugin via command-line or the WordPress admin panel.
via Command-line
Add WP CommonMark to project's dependencies using Composer.
composer require starise/wp-commonmark
Then activate the plugin via wp-cli.
wp plugin activate wp-commonmark
via WordPress Admin Panel
- Download the latest release of this repo.
- In your WordPress admin panel, navigate to Plugins->Add New
- Click Upload Plugin
- Upload the zip file that you downloaded.
Credits
Copyright © 2015 Andrea Brandi
Inspired by Markdown on Save by Mark Jaquith and Markdown module in Jetpack by Automattic.
Uses league/commonmark as default markdown parser