{"_id":"@anthonypena/marked-toc-for-series","_rev":"3-34aba54e5de4ce0763bddc2d8fbe8e7b","name":"@anthonypena/marked-toc-for-series","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"@anthonypena/marked-toc-for-series","version":"1.0.0","keywords":["marked"],"author":{"name":"Anthony Pena"},"license":"MIT","_id":"@anthonypena/marked-toc-for-series@1.0.0","maintainers":[{"name":"kuroidoruido","email":"anthony.pena@outlook.fr"}],"dist":{"shasum":"782532f5fd82509ed7ffcce62adca06669c4a5ae","tarball":"https://registry.npmjs.org/@anthonypena/marked-toc-for-series/-/marked-toc-for-series-1.0.0.tgz","fileCount":13,"integrity":"sha512-1v26sCqZF+lREQRNJmH0Dh8unJVJb2a1EVC014kT2+Iq8eqAeS7kocNl2Au3jgMUrnZa1j9uTjkkSYAHz8dNJg==","signatures":[{"sig":"MEUCIQCQcjNrNkAv+RLseGUIm4iHc5SPDVLrQSM+3c2zMcwZzwIgCRzO7yj+6aVFjATN3q4Gd6Kjt+5DHl3PouX0bu+FDZY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":28566},"main":"dist/index.js","_from":"file:anthonypena-marked-toc-for-series-1.0.0.tgz","types":"dist/index.d.ts","private":false,"scripts":{"lint":"eslint --ext ts,tsx,js,tsx src","test":"vitest","build":"run-s clean build-ts","clean":"rimraf ./dist","pretty":"prettier . --check","build-ts":"tsup src/index.ts","lint-fix":"pnpm lint --fix","pretty-fix":"prettier . --write"},"_npmUser":{"name":"kuroidoruido","email":"anthony.pena@outlook.fr"},"prettier":"@anthonypena/prettier-config","_resolved":"/tmp/60b2d72535034edc49efd7c908d58e7f/anthonypena-marked-toc-for-series-1.0.0.tgz","_integrity":"sha512-1v26sCqZF+lREQRNJmH0Dh8unJVJb2a1EVC014kT2+Iq8eqAeS7kocNl2Au3jgMUrnZa1j9uTjkkSYAHz8dNJg==","_npmVersion":"10.8.2","description":"Plugin add table of content for series of urls.","directories":{},"_nodeVersion":"20.19.6","dependencies":{"@anthonypena/fp":"1.0.1"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","eslint":"^8.57.0","marked":"^5.0.0","rimraf":"^5.0.5","vitest":"^1.4.0","prettier":"^3.2.5","typescript":"^5.4.3","npm-run-all":"^4.1.5","@types/marked":"^5.0.0","@anthonypena/tsconfig":"0.1.0","@anthonypena/eslint-plugin":"0.1.0","@anthonypena/prettier-config":"0.1.0"},"peerDependencies":{"marked":"=5.x"},"_npmOperationalInternal":{"tmp":"tmp/marked-toc-for-series_1.0.0_1768374302428_0.5770785005069681","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@anthonypena/marked-toc-for-series","version":"1.0.1","keywords":["marked"],"author":{"name":"Anthony Pena"},"license":"MIT","_id":"@anthonypena/marked-toc-for-series@1.0.1","maintainers":[{"name":"kuroidoruido","email":"anthony.pena@outlook.fr"}],"homepage":"https://github.com/kuroidoruido/js-libs#readme","bugs":{"url":"https://github.com/kuroidoruido/js-libs/issues"},"dist":{"shasum":"70d2c788b9287ee988dc5f8c17780bebc7e50afc","tarball":"https://registry.npmjs.org/@anthonypena/marked-toc-for-series/-/marked-toc-for-series-1.0.1.tgz","fileCount":13,"integrity":"sha512-LqqrsER0BtbOalVzdy8gbuIGOmJoYeGt3SbzkDZKWFp5pjNXzy/9iNUidjgfR+6J5qDz8dJwuhTJLqEqUH6asQ==","signatures":[{"sig":"MEUCIQCpniTfzL+dA8N72Q/yCbbxqBSavlnJFIdwYVo89qK8gAIgaKj9xbZet/RkwQz9TaX4Z92MaTktqeOhVF+pLdRRVus=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":28714},"main":"dist/index.mjs","_from":"file:anthonypena-marked-toc-for-series-1.0.1.tgz","types":"dist/index.d.mts","private":false,"scripts":{"lint":"eslint --ext ts,tsx,js,tsx src","test":"vitest","build":"run-s clean build-ts","clean":"rimraf ./dist","pretty":"prettier . --check","build-ts":"tsup src/index.ts","lint-fix":"pnpm lint --fix","pretty-fix":"prettier . --write"},"_npmUser":{"name":"kuroidoruido","email":"anthony.pena@outlook.fr"},"prettier":"@anthonypena/prettier-config","_resolved":"/tmp/668e5615ca1c334be99163642e36b5e6/anthonypena-marked-toc-for-series-1.0.1.tgz","_integrity":"sha512-LqqrsER0BtbOalVzdy8gbuIGOmJoYeGt3SbzkDZKWFp5pjNXzy/9iNUidjgfR+6J5qDz8dJwuhTJLqEqUH6asQ==","repository":{"url":"git+https://github.com/kuroidoruido/js-libs.git","type":"git","directory":"libs/marked-toc-for-series"},"_npmVersion":"10.8.2","description":"Plugin add table of content for series of urls.","directories":{},"_nodeVersion":"20.19.6","dependencies":{"@anthonypena/fp":"1.0.2"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","eslint":"^8.57.0","marked":"^5.0.0","rimraf":"^5.0.5","vitest":"^1.4.0","prettier":"^3.2.5","typescript":"^5.4.3","npm-run-all":"^4.1.5","@types/marked":"^5.0.0","@anthonypena/tsconfig":"0.1.0","@anthonypena/eslint-plugin":"0.1.0","@anthonypena/prettier-config":"0.1.0"},"peerDependencies":{"marked":"=5.x"},"_npmOperationalInternal":{"tmp":"tmp/marked-toc-for-series_1.0.1_1768375905259_0.09713497712273456","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@anthonypena/marked-toc-for-series","version":"1.1.0","description":"Plugin add table of content for series of urls.","repository":{"type":"git","url":"git+https://github.com/kuroidoruido/js-libs.git","directory":"libs/marked-toc-for-series"},"main":"dist/index.mjs","types":"dist/index.d.mts","private":false,"keywords":["marked"],"author":{"name":"Anthony Pena"},"license":"MIT","dependencies":{"@anthonypena/fp":"1.0.2"},"devDependencies":{"@types/marked":"^5.0.0","eslint":"^8.57.0","marked":"^5.0.0","npm-run-all":"^4.1.5","prettier":"^3.2.5","rimraf":"^5.0.5","tsup":"^8.5.0","typescript":"^5.4.3","vitest":"^1.4.0","@anthonypena/eslint-plugin":"0.1.0","@anthonypena/prettier-config":"0.1.0","@anthonypena/tsconfig":"0.1.0"},"peerDependencies":{"marked":"=5.x"},"prettier":"@anthonypena/prettier-config","scripts":{"clean":"rimraf ./dist","build-ts":"tsup src/index.ts","build":"run-s clean build-ts","test":"vitest","pretty":"prettier . --check","pretty-fix":"prettier . --write","lint":"eslint --ext ts,tsx,js,tsx src","lint-fix":"pnpm lint --fix"},"_id":"@anthonypena/marked-toc-for-series@1.1.0","bugs":{"url":"https://github.com/kuroidoruido/js-libs/issues"},"homepage":"https://github.com/kuroidoruido/js-libs#readme","_integrity":"sha512-J767NtuYExWy1nm9UXTx6A/hC5Rei4IU9X//3jDZz9Y1M/mI8oMgT55bjuWEE3VMIeeTzEnAW95vKTtefLqZWA==","_resolved":"/tmp/bd10021ae8ead1d24500c4fa9211e999/anthonypena-marked-toc-for-series-1.1.0.tgz","_from":"file:anthonypena-marked-toc-for-series-1.1.0.tgz","_nodeVersion":"20.19.6","_npmVersion":"10.8.2","dist":{"integrity":"sha512-J767NtuYExWy1nm9UXTx6A/hC5Rei4IU9X//3jDZz9Y1M/mI8oMgT55bjuWEE3VMIeeTzEnAW95vKTtefLqZWA==","shasum":"7ece22588e909bbc7a0f2c24e00cb6e2bc95ecd9","tarball":"https://registry.npmjs.org/@anthonypena/marked-toc-for-series/-/marked-toc-for-series-1.1.0.tgz","fileCount":13,"unpackedSize":31238,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFz33tZAsFe9DcQeIDBwn7ifqVEVI7z6C9D0BYCs9ZheAiBWQtsb9rWAWL2Vtmo8c0vhhDrmXsOjxi0NbG83BQtk/g=="}]},"_npmUser":{"name":"kuroidoruido","email":"anthony.pena@outlook.fr"},"directories":{},"maintainers":[{"name":"kuroidoruido","email":"anthony.pena@outlook.fr"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/marked-toc-for-series_1.1.0_1768410326797_0.11870351784377697"},"_hasShrinkwrap":false}},"time":{"created":"2026-01-14T07:05:02.347Z","modified":"2026-01-14T17:05:27.076Z","1.0.0":"2026-01-14T07:05:02.573Z","1.0.1":"2026-01-14T07:31:45.406Z","1.1.0":"2026-01-14T17:05:26.947Z"},"bugs":{"url":"https://github.com/kuroidoruido/js-libs/issues"},"author":{"name":"Anthony Pena"},"license":"MIT","homepage":"https://github.com/kuroidoruido/js-libs#readme","keywords":["marked"],"repository":{"type":"git","url":"git+https://github.com/kuroidoruido/js-libs.git","directory":"libs/marked-toc-for-series"},"description":"Plugin add table of content for series of urls.","maintainers":[{"name":"kuroidoruido","email":"anthony.pena@outlook.fr"}],"readme":"# @anthonypena/marked-toc-for-series\n\n## Install\n\n```Bash\nnpm i @anthonypena/marked-toc-for-series\n```\n\n## Examples\n\n### Add the plugin to your Marked instance\n\n```TypeScript\nimport { markedDjotDiv } from '@anthonypena/marked-toc-for-series';\nimport { Marked } from 'marked';\n\nconst marked = new Marked();\n\nmarked.use(markedTocForSeries({\n    title: 'Série',\n    series: {\n        'this-is-the-serie-id': {\n            articles: [\n                { label: 'First one', url: 'https://example.com/first-one' },\n                { label: 'Second one', url: '/second-one' },\n            ]\n        },\n        'another-serie': {\n            // ...\n        }\n    }\n}));\n```\n\n## Transformation\n\nFrom:\n\n```Markdown\n# Title\n\n<!-- TOC-SERIE:this-is-the-serie-id -->\n\nSome content...\n```\n\nto:\n\n```Html\n<h1>Title</h1>\n\n<nav data-serie=\"this-is-the-serie-id\">\n    <h2>Série</h2>\n    <ul>\n        <li><a href=\"https://example.com/first-one\">First one</a></li>\n        <li><a href=\"/second-one\">Second one</a></li>\n    </ul>\n</nav>\n\n<p>Some content...</p>\n```\n\n> Note: This package does not provide build in style. You need to implement yourself style associated to classes you define.\n\n## Docs\n\n### Parameters\n\n#### `title` (optional): the title you wan\n\nDefault: undefined\n\nIf defined, a title with an `<h2>` tag will be added, if not defined (undefined or null or empty) no title will be present.\n\n#### `series`: the series definition\n\nA dictionnary of serie definition.\n\n#### `minEntryCount` (optional): the minimum count of element for display the TOC\n\nDefault: 1\n","readmeFilename":"README.md"}