mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
Allow prettify to work on inline markdown code samples.
This commit is contained in:
parent
3d1c36a325
commit
810ab1d58f
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user