UNPKG

dgeni-packages

Version:

A collection of dgeni packages for generating documentation from source code

14 lines (13 loc) 289 B
/** * @dgRenderFilter firstParagraph * @description Extract the first paragraph from the value, breaking on the first double newline */ module.exports = { name: 'firstParagraph', process(str) { if (!str) return str; str = str .split("\n\n")[0]; return str; } };