{"_id":"@alt-gnome/markdown-it-custom-containers","_rev":"3-d77449f78022cd6d3a6ddfeca42427ab","name":"@alt-gnome/markdown-it-custom-containers","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@alt-gnome/markdown-it-custom-containers","version":"1.0.0","keywords":["vitepress","alt-gnome","readabilities","markdown","markdown-it","markdown-it-plugin","vitepress-plugin","alt-gnome-integration"],"author":{"name":"alt-gnome"},"license":"MIT","_id":"@alt-gnome/markdown-it-custom-containers@1.0.0","maintainers":[{"name":"ampernic","email":"ampernic@inbox.ru"}],"homepage":"https://github.com/alt-gnome/integrations#readme","bugs":{"url":"https://github.com/alt-gnome/integrations/issues"},"dist":{"shasum":"ec4fefb8eac49a28d1c33f846adfa1d935ee82f0","tarball":"https://registry.npmjs.org/@alt-gnome/markdown-it-custom-containers/-/markdown-it-custom-containers-1.0.0.tgz","fileCount":8,"integrity":"sha512-afn2mh+yoO5EOYOnWufHLoBIAT/IdwVhtd1SsV2GDMtwX8Cc9ayRt4KRpxFIoRn5Wbsao/O1bLFukzmoXaj7lg==","signatures":[{"sig":"MEQCIDLf2H38yJIWnveIB8beZ12nx2Vjg/7tIjsDEJsnY8hRAiA1XpQmYH/DhNQZotcvR7IUHYWWdHeRGxgYfKUBtbsgHg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13597},"main":"dist/index.cjs","type":"module","_from":"file:alt-gnome-markdown-it-custom-containers-1.0.0.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"scripts":{"dev":"unbuild --stub","stub":"unbuild --stub","build":"unbuild","typecheck":"tsc --noEmit"},"_npmUser":{"name":"ampernic","email":"ampernic@inbox.ru"},"_resolved":"/tmp/.private/ampernic/a6a2d28d9b07fe49aa66666d3c72bc91/alt-gnome-markdown-it-custom-containers-1.0.0.tgz","_integrity":"sha512-afn2mh+yoO5EOYOnWufHLoBIAT/IdwVhtd1SsV2GDMtwX8Cc9ayRt4KRpxFIoRn5Wbsao/O1bLFukzmoXaj7lg==","repository":{"url":"git+https://github.com/alt-gnome/integrations.git","type":"git","directory":"packages/markdown-it-custom-containers"},"_npmVersion":"10.9.2","description":"A plugin for Markdown-It that adds the ability to create custom containers.","directories":{},"_nodeVersion":"22.15.0","dependencies":{"colorette":"^2.0.20","@types/markdown-it":"^14.1.2","markdown-it-container":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"markdown-it":"^14.1.0","@types/markdown-it-container":"^2.0.10"},"peerDependencies":{"markdown-it":"^14.1.0"},"_npmOperationalInternal":{"tmp":"tmp/markdown-it-custom-containers_1.0.0_1747437413647_0.07381473992337395","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@alt-gnome/markdown-it-custom-containers","version":"1.0.1","keywords":["vitepress","alt-gnome","readabilities","markdown","markdown-it","markdown-it-plugin","vitepress-plugin","alt-gnome-integration"],"author":{"name":"alt-gnome"},"license":"MIT","_id":"@alt-gnome/markdown-it-custom-containers@1.0.1","maintainers":[{"name":"ampernic","email":"ampernic@inbox.ru"}],"homepage":"https://github.com/alt-gnome/integrations#readme","bugs":{"url":"https://github.com/alt-gnome/integrations/issues"},"dist":{"shasum":"aa3940da445521675bfe3c5bc2a2db22c983a3ba","tarball":"https://registry.npmjs.org/@alt-gnome/markdown-it-custom-containers/-/markdown-it-custom-containers-1.0.1.tgz","fileCount":8,"integrity":"sha512-CdWAwvyrUtO7cQ7X4TBRVoG+MwkutaRvFuyFJI8r042JpaDFzVbLqfxJMwFBKcARAbzyh5rC3bRKVi/zESx5yg==","signatures":[{"sig":"MEQCICky8aZwrm5NtzJnEvpa8P0FZnij897pQ819EOMVcxavAiBnPWFAG3nruAHQ9SuXcMWj4FJDDZ0hyi0zf62gj21z0w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13859},"main":"dist/index.cjs","type":"module","_from":"file:alt-gnome-markdown-it-custom-containers-1.0.1.tgz","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"scripts":{"dev":"unbuild --stub","stub":"unbuild --stub","build":"unbuild","typecheck":"tsc --noEmit"},"_npmUser":{"name":"ampernic","email":"ampernic@inbox.ru"},"_resolved":"/tmp/.private/ampernic/d09506ab96dafef5c6a951e08e4d6871/alt-gnome-markdown-it-custom-containers-1.0.1.tgz","_integrity":"sha512-CdWAwvyrUtO7cQ7X4TBRVoG+MwkutaRvFuyFJI8r042JpaDFzVbLqfxJMwFBKcARAbzyh5rC3bRKVi/zESx5yg==","repository":{"url":"git+https://github.com/alt-gnome/integrations.git","type":"git","directory":"packages/markdown-it-custom-containers"},"_npmVersion":"10.9.2","description":"A plugin for Markdown-It that adds the ability to create custom containers.","directories":{},"_nodeVersion":"22.15.0","dependencies":{"colorette":"^2.0.20","@types/markdown-it":"^14.1.2","markdown-it-container":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"markdown-it":"^14.1.0","@types/markdown-it-container":"^2.0.10"},"peerDependencies":{"markdown-it":"^14.1.0"},"_npmOperationalInternal":{"tmp":"tmp/markdown-it-custom-containers_1.0.1_1747438768914_0.38866900627085754","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@alt-gnome/markdown-it-custom-containers","type":"module","version":"1.0.2","description":"A plugin for Markdown-It that adds the ability to create custom containers.","repository":{"type":"git","url":"git+https://github.com/alt-gnome/integrations.git","directory":"packages/markdown-it-custom-containers"},"keywords":["vitepress","alt-gnome","readabilities","markdown","markdown-it","markdown-it-plugin","vitepress-plugin","alt-gnome-integration"],"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"main":"dist/index.cjs","module":"dist/index.mjs","types":"dist/index.d.ts","devDependencies":{"@types/markdown-it-container":"^2.0.10","markdown-it":"^14.1.0"},"author":{"name":"alt-gnome"},"license":"MIT","peerDependencies":{"markdown-it":"^14.1.0"},"dependencies":{"@types/markdown-it":"^14.1.2","colorette":"^2.0.20","markdown-it-container":"^4.0.0"},"scripts":{"stub":"unbuild --stub","dev":"unbuild --stub","build":"unbuild","typecheck":"tsc --noEmit"},"_id":"@alt-gnome/markdown-it-custom-containers@1.0.2","bugs":{"url":"https://github.com/alt-gnome/integrations/issues"},"homepage":"https://github.com/alt-gnome/integrations#readme","_integrity":"sha512-7zf9YgzrL3clnY/85BfXWFW+F01fqtN2G2ftNaWDFHhs9YdiYf54e8Za6rCo35g9XPsYyE7wD0JocjL/tijGXA==","_resolved":"/tmp/.private/ampernic/f6dab0c362c61b79cd14056579272c03/alt-gnome-markdown-it-custom-containers-1.0.2.tgz","_from":"file:alt-gnome-markdown-it-custom-containers-1.0.2.tgz","_nodeVersion":"22.16.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-7zf9YgzrL3clnY/85BfXWFW+F01fqtN2G2ftNaWDFHhs9YdiYf54e8Za6rCo35g9XPsYyE7wD0JocjL/tijGXA==","shasum":"867377c154de3c46dec178a0d4c0863ccb78021b","tarball":"https://registry.npmjs.org/@alt-gnome/markdown-it-custom-containers/-/markdown-it-custom-containers-1.0.2.tgz","fileCount":8,"unpackedSize":15606,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCmur0RAVnDCn2AGGjdJed8IYn4q1CXGN3ehW0kVgsYPAIgXhUJbFaYx3IXGnxSqjB73qI6kX9Qm3ORU1ZVBwfa/xg="}]},"_npmUser":{"name":"ampernic","email":"ampernic@inbox.ru","actor":{"name":"ampernic","email":"ampernic@inbox.ru","type":"user"}},"directories":{},"maintainers":[{"name":"ampernic","email":"ampernic@inbox.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/markdown-it-custom-containers_1.0.2_1750606120612_0.38646805219218416"},"_hasShrinkwrap":false}},"time":{"created":"2025-05-16T23:16:53.571Z","modified":"2025-06-22T15:28:41.025Z","1.0.0":"2025-05-16T23:16:53.878Z","1.0.1":"2025-05-16T23:39:29.088Z","1.0.2":"2025-06-22T15:28:40.805Z"},"bugs":{"url":"https://github.com/alt-gnome/integrations/issues"},"author":{"name":"alt-gnome"},"license":"MIT","homepage":"https://github.com/alt-gnome/integrations#readme","keywords":["vitepress","alt-gnome","readabilities","markdown","markdown-it","markdown-it-plugin","vitepress-plugin","alt-gnome-integration"],"repository":{"type":"git","url":"git+https://github.com/alt-gnome/integrations.git","directory":"packages/markdown-it-custom-containers"},"description":"A plugin for Markdown-It that adds the ability to create custom containers.","maintainers":[{"name":"ampernic","email":"ampernic@inbox.ru"}],"readme":"# @alt-gnome/markdown-it-custom-containers\n\nPlug-in layer for simplified creation of custom containers in Vitepress\n\n\n## Installation\n\n```shell\npnpm i -D @alt-gnome/markdown-it-custom-containers\n```\n\n## Configure in VitePress\n\nAdd VitePress config:\n\n```ts\n// Other imports\nimport { createContainerPlugin } from '@alt-gnome/markdown-it-custom-containers';\n\nexport const config = defineConfig({\n    // Other VitePress configuration\n    markdown: {\n        config: (md) => {\n            // Other MD-It configs\n            md.use(createContainerPlugin, {\n                containers: [\n                    // Here you will find the configuration of the blocks you need\n                    // More about it in \"Creating containers\" section\n                ] \n            }) \n        }\n    }\n}\n```\n\n## Creating containers\n\n### General information\n\n`createContainerPlugin` use as parameters:\n\n```ts\n/**\n * Plugin config\n * @interface\n * @property {ContainerConfig[]} [containers] - List of container configurations\n * @property {boolean} [debug=false] - Enabling debugging mode\n */\ninterface PluginOptions {\n  containers?: ContainerConfig[]\n  debug?: boolean\n}\n\n```\n\n`containers` use an array of objects with keys:\n\n```ts\n/**\n * Configuration of a container\n * @interface\n * @property {string} type - The unique identifier of the container\n * @property {string} [defaultTitle] - The default header on page render\n * @property {boolean} [renderTitle=true] - Should it render the title?\n * @property {string} [customClass] - Additional CSS classes\n * @property {boolean} [isDetails] - Use the <details> tag instead of <div>\n */\ninterface ContainerConfig {\n  type: string\n  defaultTitle?: string\n  renderTitle?: boolean\n  customClass?: string\n  isDetails?: boolean\n}\n```","readmeFilename":"README.md"}