2
0

google-prettify.js 566 B

123456
  1. //
  2. // Google Prettify
  3. // A showdown extension to add Google Prettify (http://code.google.com/p/google-code-prettify/)
  4. // hints to showdown's HTML output.
  5. //
  6. (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)})();