mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
6 lines
566 B
JavaScript
6 lines
566 B
JavaScript
|
//
|
||
|
// Google Prettify
|
||
|
// A showdown extension to add Google Prettify (http://code.google.com/p/google-code-prettify/)
|
||
|
// hints to showdown's HTML output.
|
||
|
//
|
||
|
(function(){var a=function(a){return[{type:"output",filter:function(a){return a.replace(/(<pre>)?<code>/gi,function(a,b){return b?'<pre class="prettyprint linenums" tabIndex="0"><code data-inner="1">':'<code class="prettyprint">'})}}]};typeof window!="undefined"&&window.Showdown&&window.Showdown.extensions&&(window.Showdown.extensions.googlePrettify=a),typeof module!="undefined"&&(module.exports=a)})();
|