{"_id":"@mdit-vue/plugin-title@4.0.0","bugs":{"url":"https://github.com/mdit-vue/mdit-vue/issues"},"dist":{"shasum":"b44001cf6c146d3d01af5c53f54a538af70a73f1","tarball":"http://registry-npm.ywwl.com/@mdit-vue/plugin-title/download/@mdit-vue/plugin-title-4.0.0.tgz","fileCount":5,"integrity":"sha512-aru6OX8RbeCPYxeOYy0/egUtojOVDmOZWSTGyRUxWrJdThCm9p9ORRBwwEYqtRa3BajG8yH95iixyYXA9vkTXQ==","signatures":[{"sig":"MEUCICXGtDM/Q0hkbSmahmvnd6/7IVzKePCCRnah3o9Al7TgAiEA3gfreWkiWfb/zqQGv18q5PvJx+GVHoS0PD5mCXoyt2o=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIChJQ+5zfB37lljPM+2K9in7xkb0EpN36zUpenO8MghLAiEAsY1iEuU8FLQrICmoq8ZLS4pOVH6tVVWs1o0KZ6PAy50="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@mdit-vue%2fplugin-title@4.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":3940,"size":2072,"noattachment":false,"key":"/@mdit-vue/plugin-title/-/@mdit-vue/plugin-title-4.0.0.tgz"},"name":"@mdit-vue/plugin-title","type":"module","types":"./dist/index.d.ts","author":{"name":"meteorlxy","email":"meteor.lxy@foxmail.com"},"engines":{"node":">=20.19.0"},"exports":{".":"./dist/index.js","./package.json":"./package.json"},"gitHead":"62f17856a1a5dec0e33c6487453a927b82a5883b","license":"MIT","scripts":{"test":"vitest","build":"tsdown","clean":"rimraf ./dist"},"version":"4.0.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"e2c369a3-71d2-4e39-b00d-b3d12a79d0fa"}},"homepage":"https://github.com/mdit-vue","keywords":["markdown-it","markdown-it-plugin","title","vue"],"repository":{"url":"git+https://github.com/mdit-vue/mdit-vue.git","type":"git"},"_npmVersion":"lerna/5.8.0/node@v26.13.0+x64 (linux)","description":"A markdown-it plugin to get markdown page title","directories":{},"maintainers":[{"name":"meteorlxy","email":"meteor.lxy@foxmail.com"}],"_nodeVersion":"26.13.0","dependencies":{"markdown-it":"^15.0.3","@mdit-vue/types":"4.0.0","@mdit-vue/shared":"4.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsdown":"^0.23.7","vitest":"^5.1.0","markdown-it-emoji":"^3.1.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/plugin-title_4.0.0_1794239032109_0.04151985585297657"},"readme":"# @mdit-vue/plugin-title\n\n[![npm](https://badgen.net/npm/v/@mdit-vue/plugin-title)](https://www.npmjs.com/package/@mdit-vue/plugin-title)\n[![license](https://badgen.net/github/license/mdit-vue/mdit-vue)](https://github.com/mdit-vue/mdit-vue/blob/main/LICENSE)\n\nA [markdown-it](https://github.com/markdown-it/markdown-it) plugin to get page title.\n\n- Extracts title (the content of the first level-1 heading) into markdown-it `env.title`.\n\n## Install\n\n```sh\nnpm i @mdit-vue/plugin-title\n```\n\n## Usage\n\n```ts\nimport { titlePlugin } from '@mdit-vue/plugin-title';\nimport type { Env } from 'markdown-it';\nimport MarkdownIt from 'markdown-it';\n\nconst md = MarkdownIt({ html: true }).use(titlePlugin);\nconst env: Env = {};\n\nconst rendered = md.render(\n  `\\\n# h1\n## h2\n### h3\n`,\n  env,\n);\n\nconsole.log(env.title);\n```\n","publish_time":1794239032187,"_cnpm_publish_time":1794239032187,"dist-tags":{"latest":"4.0.0"}}