UNPKG

vue-docgen-cli

Version:

Generate documentation markdown files from VueJs components using the vue-docgen-api.

20 lines 534 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.renderTags = void 0; function isTag(v) { return !!v.content; } const renderTags = (tags) => { if (!tags) { return ''; } return Object.entries(tags) .map(([tag, values]) => { if (tag === 'type') return ''; return values.map(v => `\n\`@${tag}\` ${isTag(v) ? v.content : v.description}`).join(''); }) .join(''); }; exports.renderTags = renderTags; //# sourceMappingURL=tags.js.map