Plugin Directory

Changeset 1102876


Ignore:
Timestamp:
03/01/2015 11:55:44 PM (11 years ago)
Author:
rob1n
Message:

Release v0.2

Location:
parsedown-wp
Files:
16 added
2 edited

Legend:

Unmodified
Added
Removed
  • parsedown-wp/trunk/parsedown-wp.php

    r1102808 r1102876  
    22/*
    33    Plugin Name: Parsedown for WordPress
    4     Plugin URI: http://robinadr.com/
     4    Plugin URI: https://wordpress.org/plugins/parsedown-wp/
    55    Description: A drop-in Markdown plugin using Parsedown Extra.
    6     Version: 0.1
     6    Version: 0.2
    77    Author: Robin Adrianse
    88    Author URI: http://robinadr.com/
     
    6262require_once __DIR__ . '/Parsedown/ParsedownExtra.php';
    6363
     64class 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
    6473class Parsedown_WP
    6574{
     
    7180    public function __construct()
    7281    {
    73         //add_action( 'init', array( $this, 'init' ) );
    74         $this->init();
     82        add_action( 'init', array( $this, 'init' ) );
    7583    }
    7684
    7785    public function init()
    7886    {
    79         $this->parser = new ParsedownExtra();
     87        $this->parser = new Parsedown_WP_Parser();
    8088
    8189        // These filters are taken directly from PHP Markdown Extra by Michel
  • parsedown-wp/trunk/readme.txt

    r1102808 r1102876  
    44Tags: markdown, formatting, posting, writing, markup
    55Tested up to: 4.1.1
    6 Stable tag: 0.1
     6Stable tag: 0.2
    77License: MIT
    88License URI: http://opensource.org/licenses/MIT
     
    3131== Changelog ==
    3232
     33= 0.2 =
     34
     35Fixed unintended behavior of converting HTML special characters. WordPress does this automatically, and converting makes curly quotes not work.
     36
    3337= 0.1 =
    3438
Note: See TracChangeset for help on using the changeset viewer.