Changeset 1102876
- Timestamp:
- 03/01/2015 11:55:44 PM (11 years ago)
- Location:
- parsedown-wp
- Files:
-
- 16 added
- 2 edited
-
tags/0.1 (added)
-
tags/0.1/Parsedown (added)
-
tags/0.1/Parsedown/LICENSE.txt (added)
-
tags/0.1/Parsedown/Parsedown.php (added)
-
tags/0.1/Parsedown/ParsedownExtra.php (added)
-
tags/0.1/license.txt (added)
-
tags/0.1/parsedown-wp.php (added)
-
tags/0.1/readme.txt (added)
-
tags/0.2 (added)
-
tags/0.2/Parsedown (added)
-
tags/0.2/Parsedown/LICENSE.txt (added)
-
tags/0.2/Parsedown/Parsedown.php (added)
-
tags/0.2/Parsedown/ParsedownExtra.php (added)
-
tags/0.2/license.txt (added)
-
tags/0.2/parsedown-wp.php (added)
-
tags/0.2/readme.txt (added)
-
trunk/parsedown-wp.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
parsedown-wp/trunk/parsedown-wp.php
r1102808 r1102876 2 2 /* 3 3 Plugin Name: Parsedown for WordPress 4 Plugin URI: http ://robinadr.com/4 Plugin URI: https://wordpress.org/plugins/parsedown-wp/ 5 5 Description: A drop-in Markdown plugin using Parsedown Extra. 6 Version: 0. 16 Version: 0.2 7 7 Author: Robin Adrianse 8 8 Author URI: http://robinadr.com/ … … 62 62 require_once __DIR__ . '/Parsedown/ParsedownExtra.php'; 63 63 64 class Parsedown_WP_Parser extends ParsedownExtra 65 { 66 protected function inlineSpecialCharacter( $excerpt ) 67 { 68 // Do nothing. WordPress handles HTML special characters 69 // and curly quotes by default. 70 } 71 } 72 64 73 class Parsedown_WP 65 74 { … … 71 80 public function __construct() 72 81 { 73 //add_action( 'init', array( $this, 'init' ) ); 74 $this->init(); 82 add_action( 'init', array( $this, 'init' ) ); 75 83 } 76 84 77 85 public function init() 78 86 { 79 $this->parser = new Parsedown Extra();87 $this->parser = new Parsedown_WP_Parser(); 80 88 81 89 // These filters are taken directly from PHP Markdown Extra by Michel -
parsedown-wp/trunk/readme.txt
r1102808 r1102876 4 4 Tags: markdown, formatting, posting, writing, markup 5 5 Tested up to: 4.1.1 6 Stable tag: 0. 16 Stable tag: 0.2 7 7 License: MIT 8 8 License URI: http://opensource.org/licenses/MIT … … 31 31 == Changelog == 32 32 33 = 0.2 = 34 35 Fixed unintended behavior of converting HTML special characters. WordPress does this automatically, and converting makes curly quotes not work. 36 33 37 = 0.1 = 34 38
Note: See TracChangeset
for help on using the changeset viewer.