@eagleoutice/flowr
Version:
Static Dataflow Analyzer and Program Slicer for the R Programming Language
21 lines (19 loc) • 643 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.details = details;
exports.block = block;
const doc_general_1 = require("./doc-general");
function details(title, content, { color, open = false, hideIfEmpty = true, prefixInit = '' } = {}) {
return hideIfEmpty && content.trim().length === 0 ? '' : `
${prefixInit}<details${open ? ' open' : ''}><summary style="${color ? 'color:' + color : ''}">${title}</summary>
${content}
</details>
`;
}
function block({ type, content }) {
return `
> [!${type}]
${(0, doc_general_1.prefixLines)(content, '> ')}
`;
}
//# sourceMappingURL=doc-structure.js.map