UNPKG

@typedproject/ts-doc

Version:

Generate documentation in markdown for TypeScript API

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