{"_id":"@mdit-vue/types@4.0.0","bugs":{"url":"https://github.com/mdit-vue/mdit-vue/issues"},"dist":{"shasum":"44f4fedf2f62a4ade4f39650a83c3e2540474ad5","tarball":"http://registry-npm.ywwl.com/@mdit-vue/types/download/@mdit-vue/types-4.0.0.tgz","fileCount":5,"integrity":"sha512-c8YYON97dW2WIE5zPwH5noB8a9JYsvktEZLy8G3nLcsDJTlnzVJ0Ux9VRNqkv8yEHN+iTLP53wuB+Vd79ntICw==","signatures":[{"sig":"MEQCIFzX/fpiZ2BRf8fd7nVHFNZT1nhnng9poEoS6WP8G/VfAiBmvlAYefdO/z9rjX/1y49mLrbLrYiAVn0aD7qi+jwKZg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCbvsx+ZhhQB7H0KwJBKRa7OpnwFTJBYTkED3ikH/YC4AIhAILM+NKWLIC1fcErwg2EuVxIgquybzZlN9hqYVUHWOBs"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@mdit-vue%2ftypes@4.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":4020,"size":2108,"noattachment":false,"key":"/@mdit-vue/types/-/@mdit-vue/types-4.0.0.tgz"},"name":"@mdit-vue/types","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":{"build":"tsdown","clean":"rimraf ./dist"},"version":"4.0.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"8c64068a-f39d-44e8-9a94-8339f10ece34"}},"homepage":"https://github.com/mdit-vue","keywords":["markdown-it","types","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":"Shared types definition of mdit-vue","directories":{},"maintainers":[{"name":"meteorlxy","email":"meteor.lxy@foxmail.com"}],"_nodeVersion":"26.13.0","dependencies":{"markdown-it":"^15.0.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsdown":"^0.23.7"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/types_4.0.0_1794239165764_0.41145217948857093"},"readme":"# @mdit-vue/types\n\n[![npm](https://badgen.net/npm/v/@mdit-vue/types)](https://www.npmjs.com/package/@mdit-vue/types)\n\nShared types definition of mdit-vue.\n\n## Install\n\n```sh\nnpm i @mdit-vue/types\n```\n\n## Usage\n\nDefine a markdown-it plugin with optional typed options:\n\n```ts\nimport type { MarkdownItPlugin } from '@mdit-vue/types';\n\ninterface PluginOptions {\n  breaks?: boolean;\n}\n\nconst plugin: MarkdownItPlugin<PluginOptions> = (\n  md,\n  { breaks = false } = {},\n) => {\n  md.set({ breaks });\n};\n```\n\nUse `MarkdownItBlockRule` and `MarkdownItInlineRule` for block and inline parser\nrules. Both types are derived from markdown-it's native ruler signatures.\n\nAdd more properties to `env` via [TypeScript module augmentation](https://www.typescriptlang.org/docs/handbook/declaration-merging.html#module-augmentation):\n\n```ts\nimport type { Env } from 'markdown-it';\nimport MarkdownIt from 'markdown-it';\n\ndeclare module 'markdown-it' {\n  interface Env {\n    foo?: string[];\n  }\n}\n\nconst md = MarkdownIt({ html: true });\nconst env: Env = {};\nconst rendered = md.render('raw markdown text', env);\n```\n","publish_time":1794239165857,"_cnpm_publish_time":1794239165857,"dist-tags":{"latest":"4.0.0"}}