robneu / cfs-markdown

A Simple Markdown Add-On for Custom Field Suite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Custom Field Suite Markdown Add-On

A simple Markdown add-on for Custom Field Suite

Contributors: Robert Neu
Requires: CFS 2.4, WordPress 4.1.1
Tested up to: CFS 2.4, WordPress 4.1.1
License: GPL-2.0+

This is a small add-on for Custom Field Suite which adds a Markdown field type. The field works similarly to the standard textarea input except that it accepts Markdown syntax. In addition to being able to parse and display markdown correctly on the front end, the field also features a WYSIWYG-ish toolbar and a live Markdown preview window to make adding Markdown easier.

Standard Field

Loop Field

Markdown support is added using the Parsedown class by Emanuil Rusev.

Markdown preview and WYSIWYG toolbar uses a modified version of Meltdown

Installation

  • Click the "Download ZIP" button on the right side of this GitHub page.
  • Upload the unzipped folder into the /wp-content/plugins/ directory, OR
  • Upload the zip file into WordPress (Plugins > Add New > Upload)
  • Activate the plugin (CFS must also be active)

Git

Clone this repository in /wp-content/plugins/:

git clone https://github.com/robneu/cfs-markdown.git

Then go to the Plugins screen in your WordPress admin panel and click the Activate link under CFS - Markdown Add-On.

Updating

There are a couple of plugins for managing updates to GitHub-hosted plugins. Either of these should notify you when this plugin is updated:

About

A Simple Markdown Add-On for Custom Field Suite


Languages

Language:CSS 53.3%Language:PHP 40.4%Language:JavaScript 6.3%