UNPKG

@tsed/ts-doc

Version:

Generate documentation in markdown for TypeScript API

12 lines (10 loc) 313 B
const {stripsComments} = require("../../src/utils/strips"); const {highlight} = require("./highlight"); module.exports = { name: "codeHighlight", trim: false, method(overview, symbolName, deprecated) { const code = highlight(stripsComments(overview), symbolName); return {code, deprecated}; } };