dgeni-packages
Version:
A collection of dgeni packages for generating documentation from source code
13 lines • 315 B
JavaScript
/**
* @dgRenderFilter marked
* @description Convert the value, as markdown, into HTML using the marked library
*/
module.exports = function markedNunjucksFilter(renderMarkdown) {
return {
name: 'marked',
process(str) {
const output = str && renderMarkdown(str);
return output;
}
};
};