Showdown's Prettify Extension

An extension to add Google Prettify hints to showdown's HTML output
Installation
npm install showdown-prettify
bower install showdown-prettify
Manual
You can also download the latest release zip or tarball and include it in your webpage, after showdown:
<script src="showdown.min.js">
<script src="showdown-prettify.min.js">
Enabling the extension
After including the extension in your application, you just need to enable it in showdown.
var converter = new showdown.Converter({extensions: ['prettify']});
Example
var converter = new showdown.Converter({extensions: ['prettify']}),
input = "Here's a simple hello world in javascript:\n" +
"\n" +
" alert('Hello World!');\n" +
"\n" +
"The `alert` function is a build-in global from `window`.";
html = converter.makeHtml(input);
console.log(html);
This should output the equivalent to:
<p>Here's a simple hello world in javascript:</p>
<pre class="prettyprint linenums" tabIndex="0"><code data-inner="1">alert('Hello World!');
</code></pre>
<p>The <code class="prettyprint">alert</code> function is a build-in global from <code class="prettyprint">window</code>.</p>
License
These files are distributed under BSD license. For more information,
please check the LICENSE file in the source code.
1.3.0 (2016-01-06)
Release information
This update removes the warning that the extension is deprecated in the lastest versions of showdown.
Breaking Changes
Update extension to the new showdown's extenion loading mechanism.
<a name"1.0.2"></a>
1.0.2 (2015-06-04)
Release information
This is an hotfix for the documentation. (NPM requires a patch bump to update README.md)
<a name"1.0.1"></a>
1.0.1 (2015-06-04)
Release information
This is an hotfix for the npm package. Previously, the main attribute was poiting to an unexisting file. This hotfix fixes this.
Bug Fixes
- package.json: fix main attribute in package.json (d219bf1a)
<a name"1.0.0"></a>