diff --git a/lib/parsedown b/lib/parsedown index e33ac1c..bb7a3f4 160000 --- a/lib/parsedown +++ b/lib/parsedown @@ -1 +1 @@ -Subproject commit e33ac1c56ea591f21b9cf2fa74356ef708d4e130 +Subproject commit bb7a3f41e301a026055eded020ba061a67d3cadd diff --git a/lib/parsedown-extra b/lib/parsedown-extra index bcd3930..910f726 160000 --- a/lib/parsedown-extra +++ b/lib/parsedown-extra @@ -1 +1 @@ -Subproject commit bcd3930f7f10915e40513e1951a253f061d75463 +Subproject commit 910f726ab6c92ba24e5579f57507c7197d09a159 diff --git a/readme.txt b/readme.txt index d907363..569563c 100644 --- a/readme.txt +++ b/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 @@ -22,6 +22,12 @@ Parse the_content with [Parsedown Extra](http://www.parsedown.org/demo?extra=1) == 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* diff --git a/wp-parsedown.php b/wp-parsedown.php index f369423..c7423e9 100644 --- a/wp-parsedown.php +++ b/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 Author URI: https://petermolnar.eu/ License: GPLv3 @@ -56,6 +56,8 @@ class WP_PARSEDOWN extends PluginAbstract { /* display markdown */ add_filter( 'the_content', array(&$this, 'markdown_on_the_fly'), 9 ); + remove_filter( 'the_content', 'wpautop' ); + remove_filter( 'the_excerpt', 'wpautop' ); }