Plugin Directory

Changeset 647607


Ignore:
Timestamp:
01/03/2013 10:06:33 PM (13 years ago)
Author:
dwhitevisoft
Message:

v0.1.1 Release

Location:
wp-markdown-syntax-sugar/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-markdown-syntax-sugar/trunk/readme.txt

    r585083 r647607  
    44Tags: markdown, highlight.js, syntax, code, pre, highlight
    55Requires at least: 3.1
    6 Tested up to: 3.4.1
    7 Stable tag: 0.1.0
     6Tested up to: 3.5
     7Stable tag: 0.1.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1515
    1616WP Markdown Syntax Sugar work in conjunction with plugins such as [wp-markdown](http://wordpress.org/extend/plugins/wp-markdown/)
    17 and [wp-hightlight.js](http://wordpress.org/extend/plugins/wp-highlightjs/). Markdown is fantastic markup for easily
     17and [wp-highlight.js](http://wordpress.org/extend/plugins/wp-highlightjs/). Markdown is fantastic markup for easily
    1818writing blogs, and [highlight.js](http://softwaremaniacs.org/soft/highlight/en/) is an extremely easy way to highlight
    1919code examples. In most cases, highlight.js automatically detects the proper language for a block of code. In certain
     
    3636The shebang is removed, and the code is outputted as:
    3737
    38     <pre><code class="ruby">class Foo < Bar
     38    <pre><code class="language-ruby">class Foo < Bar
    3939      def hello
    4040        puts "Hello World!"
     
    5757= 0.1.0 =
    5858* Initial release
     59= 0.1.1 =
     60* Modified output to use the HTML5 recommended syntax highlighting class names, e.g. `language-ruby`. For more information, see [the HTML5 spec](http://www.w3.org/html/wg/drafts/html/master/text-level-semantics.html#the-code-element)
  • wp-markdown-syntax-sugar/trunk/wp-markdown-syntax-sugar.php

    r585083 r647607  
    22/*
    33Plugin Name: wp-markdown-syntax-sugar
    4 Plugin URI: http://www.visoftinc.com
     4Plugin URI: https://github.com/visoft/wp-markdown-syntax-sugar
    55Description: This WordPress plugin works to enhance the handling of code blocks in markdown syntax.
    6 Version: 0.1.0
     6Version: 0.1.1
    77Author: Damien White (Visoft, Inc.)
    88Author URI: http://www.visoftinc.com
     
    1111
    1212/*
    13   Copyright 2012 Visoft, Inc. <info@visoftinc.com>
     13  Copyright 2012-2013 Visoft, Inc. <info@visoftinc.com>
    1414
    1515  This file is part of wp-markdown-syntax-sugar
     
    4545        $code = stripslashes( trim( htmlspecialchars_decode( $code, ENT_NOQUOTES ) ) );
    4646    }
    47     return '<pre><code class="'. $language . '">' . $code . '</code></pre>';
     47    return '<pre><code class="language-'. $language . '">' . $code . '</code></pre>';
    4848}
Note: See TracChangeset for help on using the changeset viewer.