update
Peter Molnar hello@petermolnar.eu
Tue, 23 Sep 2014 15:38:14 +0100
2 files changed,
10 insertions(+),
2 deletions(-)
M
readme.txt
→
readme.txt
@@ -4,7 +4,7 @@ Donate link:
Tags: markdown, editor, parsedown Requires at least: 3.0 Tested up to: 4.0 -Stable tag: 0.1.1 +Stable tag: 0.2 License: GPLv3 License URI: http://www.gnu.org/licenses/gpl-3.0.html@@ -21,6 +21,12 @@ 1. Upload contents of `wp-parsedown.zip` to the `/wp-content/plugins/` directory
2. Activate the plugin through the `Plugins` menu in WordPress ( site or Network wide ) == Changelog == + += 0.2 = +*2014-09-23* + +* added removal of wpautop filters; they are not needed when Parsedown is doing it's job +* updated parsedown libs = 0.1.1 = *2014-09-06*
M
wp-parsedown.php
→
wp-parsedown.php
@@ -3,7 +3,7 @@ /*
Plugin Name: WP-Parsedown Plugin URI: https://github.com/petermolnar/wp-parsedown Description: [Parsedown Extra](www.parsedown.org/demo?extra=1) on-the-fly -Version: 0.1.1 +Version: 0.2 Author: Peter Molnar <hello@petermolnar.eu> Author URI: https://petermolnar.eu/ License: GPLv3@@ -56,6 +56,8 @@ public function plugin_post_init () {
/* display markdown */ add_filter( 'the_content', array(&$this, 'markdown_on_the_fly'), 9 ); + remove_filter( 'the_content', 'wpautop' ); + remove_filter( 'the_excerpt', 'wpautop' ); }