UNPKG

@jsdevtools/rehype-toc

Version:

A rehype plugin that adds a table of contents (TOC) to the page

24 lines 1.1 kB
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.toc = void 0; const rehype_toc_1 = require("./rehype-toc"); Object.defineProperty(exports, "toc", { enumerable: true, get: function () { return rehype_toc_1.toc; } }); __exportStar(require("./types"), exports); // Export `toc` as the default export exports.default = rehype_toc_1.toc; // CommonJS default export hack /* eslint-env commonjs */ if (typeof module === "object" && typeof module.exports === "object") { module.exports = Object.assign(module.exports.default, module.exports); } //# sourceMappingURL=index.js.map