Allow prettify to work on inline markdown code samples.

This commit is contained in:
shakefu 2014-04-15 16:31:44 -07:00
parent 3d1c36a325
commit 810ab1d58f

View File

@ -91,6 +91,10 @@ function getParseFunction(parserName, conf) {
return util.format('<h%s>%s</h%s>', level, text, level);
};
// Allow prettyprint to work on inline code samples
markedRenderer.code = function(code, language) {
return '<pre class="prettyprint source">'+code+'</pre>';
};
parserFunction = function(source) {
var result;