{"library":"markdown-it-chain","title":"markdown-it-chain","description":"A chaining API for markdown-it, similar to webpack-chain, enabling declarative configuration of markdown-it options and plugins. Version 1.3.0 is the latest and only stable release; no further updates are expected. It requires markdown-it >=5.0.0 as a peer dependency. The package provides a fluent, jQuery-like chain for setting HTML/typographer options and registering plugins with before/after ordering. Its key differentiator is providing a structured, webpack-chain-inspired API for markdown-it, which is useful for complex configurations where order of plugins matters. It is not actively maintained and has no built-in TypeScript types.","language":"javascript","status":"maintenance","last_verified":"Sat Apr 25","install":{"commands":["npm install markdown-it-chain"],"cli":null},"imports":["const Config = require('markdown-it-chain')","import Config from 'markdown-it-chain'","not exported directly; accessed via config.options or config.plugin()"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"const Config = require('markdown-it-chain');\nconst config = new Config();\nconfig\n  .options\n    .html(true)\n    .linkify(true)\n    .end()\n  .plugin('toc')\n    .use(require('markdown-it-table-of-contents'), [{ includeLevel: [2, 3] }])\n    .end()\n  .plugin('anchor')\n    .use(require('markdown-it-anchor'), [{ permalink: true, permalinkBefore: true, permalinkSymbol: '$' }])\n    .before('toc');\nconst md = config.toMd();\nconst result = md.render('[[TOC]]\\n# h1\\n## h2\\n## h3');\nconsole.log(result);","lang":"javascript","description":"Creates a markdown-it configuration via chain API, adds plugins with ordering, and renders Markdown.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}