{"_id":"@cutexiaocai/astro-markdown-render","_rev":"4-5dba70ce8b582dbf00c87248d133e507","name":"@cutexiaocai/astro-markdown-render","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"@cutexiaocai/astro-markdown-render","version":"1.0.0","keywords":["astro","astro-component","withastro","ui","commonmark","config","configuration","content","html","inline","markdown","md","render","remark"],"author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","_id":"@cutexiaocai/astro-markdown-render@1.0.0","maintainers":[{"name":"cutexiaocai","email":"me@ixiaocai.net"}],"homepage":"https://github.com/astro-community/md","bugs":{"url":"https://github.com/astro-community/md/issues"},"dist":{"shasum":"f426e04f488dfe5cb28701c59d88709fa532fe11","tarball":"https://registry.npmjs.org/@cutexiaocai/astro-markdown-render/-/astro-markdown-render-1.0.0.tgz","fileCount":15,"integrity":"sha512-5O5PF0e8k0U38P17i9AMNspC/PIxuSl2vhbuv+ysAowlO+zun3BRV0xkJepdDn0MLdmOg1pHDaqGancPirflpg==","signatures":[{"sig":"MEUCICKOLbKBsDFCq8Ep6ccuj1WrZAQis5oHcjoKA/PErQt1AiEAj8gRDxYuBeWTyQr3i7VybhFfwyRlWS9J+3fMQuJFMt0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10177},"main":"astro-md.js","type":"module","_from":"file:cutexiaocai-astro-markdown-render-1.0.0.tgz","types":"astro-md.d.ts","unpkg":"astro-md.js","$schema":"https://json.schemastore.org/package.json","exports":{".":{"types":"./astro-md.d.ts","default":"./astro-md.js"},"./global":"./global.d.ts","./package":"./package.json","./Markdown":{"types":"./lib/component.d.ts","default":"./lib/component.js"},"./astro-md":{"types":"./astro-md.d.ts","default":"./astro-md.js"},"./global.d":"./global.d.ts","./global.d.ts":"./global.d.ts","./package.json":"./package.json"},"_npmUser":{"name":"cutexiaocai","email":"me@ixiaocai.net"},"jsdelivr":"astro-md.js","_resolved":"/private/var/folders/p_/4990td196g3_5hj7n_kt6sk40000gn/T/2b41e11ff076e78751e8bcbdb4ad3aad/cutexiaocai-astro-markdown-render-1.0.0.tgz","_integrity":"sha512-5O5PF0e8k0U38P17i9AMNspC/PIxuSl2vhbuv+ysAowlO+zun3BRV0xkJepdDn0MLdmOg1pHDaqGancPirflpg==","repository":{"url":"git+https://github.com/astro-community/md.git","type":"git"},"_npmVersion":"11.6.0","description":"Render any Markdown content in Astro","directories":{},"sideEffects":false,"_nodeVersion":"24.8.0","_hasShrinkwrap":false,"peerDependencies":{"@astrojs/markdown-remark":"^6"},"_npmOperationalInternal":{"tmp":"tmp/astro-markdown-render_1.0.0_1758401925737_0.6259085696940825","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@cutexiaocai/astro-markdown-render","version":"1.0.1","keywords":["astro","astro-component","withastro","ui","commonmark","config","configuration","content","html","inline","markdown","md","render","remark"],"author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","_id":"@cutexiaocai/astro-markdown-render@1.0.1","maintainers":[{"name":"cutexiaocai","email":"me@ixiaocai.net"}],"homepage":"https://github.com/astro-community/md","bugs":{"url":"https://github.com/astro-community/md/issues"},"dist":{"shasum":"fab1d14accb5db0efdb8df2ecbf29168f4062784","tarball":"https://registry.npmjs.org/@cutexiaocai/astro-markdown-render/-/astro-markdown-render-1.0.1.tgz","fileCount":15,"integrity":"sha512-SWtwgcwoyfhhr9eIy7dPbkrFaVyNg3le4oqz9edtNkzpcNjWpMJp9yU6yA+d52F2J+V7aSfXEnCsay8+Ch9/pQ==","signatures":[{"sig":"MEUCIQD6ExPaySF0WqVlE9D2FdAhbvMAt8SDNvCu8VhDlyuyOwIgeopMwMoyk0qJ7Uvqg4HVKC7ryEugn7xDCCGgqOTM+Ws=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10471},"main":"astro-md.js","type":"module","_from":"file:cutexiaocai-astro-markdown-render-1.0.1.tgz","types":"astro-md.d.ts","unpkg":"astro-md.js","$schema":"https://json.schemastore.org/package.json","exports":{".":{"types":"./astro-md.d.ts","default":"./astro-md.js"},"./global":"./global.d.ts","./package":"./package.json","./Markdown":{"types":"./lib/component.d.ts","default":"./lib/component.js"},"./astro-md":{"types":"./astro-md.d.ts","default":"./astro-md.js"},"./global.d":"./global.d.ts","./global.d.ts":"./global.d.ts","./package.json":"./package.json"},"_npmUser":{"name":"cutexiaocai","email":"me@ixiaocai.net"},"jsdelivr":"astro-md.js","_resolved":"/private/var/folders/p_/4990td196g3_5hj7n_kt6sk40000gn/T/0033122fa4c6f6f195e1d827089cfa86/cutexiaocai-astro-markdown-render-1.0.1.tgz","_integrity":"sha512-SWtwgcwoyfhhr9eIy7dPbkrFaVyNg3le4oqz9edtNkzpcNjWpMJp9yU6yA+d52F2J+V7aSfXEnCsay8+Ch9/pQ==","repository":{"url":"git+https://github.com/astro-community/md.git","type":"git"},"_npmVersion":"11.6.0","description":"Render any Markdown content in Astro","directories":{},"sideEffects":false,"_nodeVersion":"24.8.0","_hasShrinkwrap":false,"peerDependencies":{"@astrojs/markdown-remark":"^6"},"_npmOperationalInternal":{"tmp":"tmp/astro-markdown-render_1.0.1_1758402194184_0.1502793639569866","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@cutexiaocai/astro-markdown-render","version":"1.0.2","keywords":["astro","astro-component","withastro","ui","commonmark","config","configuration","content","html","inline","markdown","md","render","remark"],"author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","_id":"@cutexiaocai/astro-markdown-render@1.0.2","maintainers":[{"name":"cutexiaocai","email":"me@ixiaocai.net"}],"homepage":"https://github.com/astro-community/md","bugs":{"url":"https://github.com/astro-community/md/issues"},"dist":{"shasum":"480f131d31a58a1d1f8c98162d26850976ee1d9a","tarball":"https://registry.npmjs.org/@cutexiaocai/astro-markdown-render/-/astro-markdown-render-1.0.2.tgz","fileCount":15,"integrity":"sha512-mKDpro363RZ/yMJyjq0/NKAtxUyk+BKFlp+RYe3jqYhg3pq1JnPo6VmCNHY6z9PSJS4g3BVQU5pZmS9jTrtbUQ==","signatures":[{"sig":"MEUCIQDR2BbFDnpR3gDrIw1WR4iM99tXrUA+fiGhV16/d6aB5QIgGHtEHcIfLHVYu6cJrYT+jp9SmXB5Zuwfog5El6hsN1k=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10371},"main":"astro-md.js","type":"module","types":"astro-md.d.ts","unpkg":"astro-md.js","$schema":"https://json.schemastore.org/package.json","exports":{".":{"types":"./astro-md.d.ts","default":"./astro-md.js"},"./global":"./global.d.ts","./package":"./package.json","./Markdown":{"types":"./lib/component.d.ts","default":"./lib/component.js"},"./astro-md":{"types":"./astro-md.d.ts","default":"./astro-md.js"},"./global.d":"./global.d.ts","./global.d.ts":"./global.d.ts","./package.json":"./package.json"},"gitHead":"3842b9742f71868eb79a256acd2019f33d10992d","_npmUser":{"name":"cutexiaocai","email":"me@ixiaocai.net"},"jsdelivr":"astro-md.js","repository":{"url":"git+https://github.com/astro-community/md.git","type":"git"},"_npmVersion":"11.9.0","description":"Render any Markdown content in Astro","directories":{},"sideEffects":false,"_nodeVersion":"25.6.1","_hasShrinkwrap":false,"peerDependencies":{"@astrojs/markdown-remark":"^6"},"_npmOperationalInternal":{"tmp":"tmp/astro-markdown-render_1.0.2_1774927059354_0.697855993990278","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"$schema":"https://json.schemastore.org/package.json","name":"@cutexiaocai/astro-markdown-render","description":"Render any Markdown content in Astro","version":"1.0.3","type":"module","license":"CC0-1.0","exports":{".":{"default":"./astro-md.js","types":"./astro-md.d.ts"},"./astro-md":{"default":"./astro-md.js","types":"./astro-md.d.ts"},"./Markdown":{"default":"./lib/component.js","types":"./lib/component.d.ts"},"./global":"./global.d.ts","./global.d":"./global.d.ts","./global.d.ts":"./global.d.ts","./package":"./package.json","./package.json":"./package.json"},"peerDependencies":{"@astrojs/markdown-remark":"^6 || ^7"},"main":"astro-md.js","types":"astro-md.d.ts","unpkg":"astro-md.js","jsdelivr":"astro-md.js","sideEffects":false,"keywords":["astro","astro-component","withastro","ui","commonmark","config","configuration","content","html","inline","markdown","md","render","remark"],"author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"bugs":{"url":"https://github.com/astro-community/md/issues"},"homepage":"https://github.com/astro-community/md","repository":{"type":"git","url":"git+https://github.com/astro-community/md.git"},"gitHead":"ccd7eaea230c5aabc58b2ee369baad2b5db8114d","_id":"@cutexiaocai/astro-markdown-render@1.0.3","_nodeVersion":"25.6.1","_npmVersion":"11.9.0","dist":{"integrity":"sha512-gEqB9PQTc6U3w3OWTNX1uuf1xngtITgmu/6ImcSMz6uqbRHl4wj+HpCTm8L7KXwzVpeJpRaMYf40hCIH2MYB2A==","shasum":"a3765d117b73ff349d21c9f92d3fdb675671d3c2","tarball":"https://registry.npmjs.org/@cutexiaocai/astro-markdown-render/-/astro-markdown-render-1.0.3.tgz","fileCount":15,"unpackedSize":10377,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDPwRL6ufgiv1xCVcvc4BrN31Jlpj0P1Sg3mPSBTy6opwIhAIDuxeznJRyh67EWoquJSuljNt0huQBfat3DpTKBJt15"}]},"_npmUser":{"name":"cutexiaocai","email":"me@ixiaocai.net"},"directories":{},"maintainers":[{"name":"cutexiaocai","email":"me@ixiaocai.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/astro-markdown-render_1.0.3_1774927286368_0.3427792495675892"},"_hasShrinkwrap":false}},"time":{"created":"2025-09-20T20:58:45.652Z","modified":"2026-03-31T03:21:26.639Z","1.0.0":"2025-09-20T20:58:45.926Z","1.0.1":"2025-09-20T21:03:14.377Z","1.0.2":"2026-03-31T03:17:39.501Z","1.0.3":"2026-03-31T03:21:26.530Z"},"bugs":{"url":"https://github.com/astro-community/md/issues"},"author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","homepage":"https://github.com/astro-community/md","keywords":["astro","astro-component","withastro","ui","commonmark","config","configuration","content","html","inline","markdown","md","render","remark"],"repository":{"type":"git","url":"git+https://github.com/astro-community/md.git"},"description":"Render any Markdown content in Astro","maintainers":[{"name":"cutexiaocai","email":"me@ixiaocai.net"}],"readme":"# Astro Markdown <img src=\"https://jonneal.dev/astro-logo.svg\" alt=\"\" width=\"90\" height=\"90\" align=\"right\">\n\n> [!NOTE]\n> 这是我为了消除依赖冲突而自制的 npm 包，没有任何新功能。\n\n**Astro Markdown** 允许您在 **[Astro](https://astro.build)** 中渲染任何 Markdown 内容，并可选择与任何现有配置集成。\n\n[![NPM Version][npm-img]][npm-url]\n[![NPM Downloads][download-img]][download-url]\n[![Open in StackBlitz][stackblitz-img]][stackblitz-url]\n\n```astro\n---\nimport { Markdown } from '@cutexiaocai/astro-markdown-render'\n---\n<Markdown of={`# Hi, there!`} /* Renders `<h1>Hi, there!</h1>` */ />\n```\n\n```astro\n---\nimport { markdown } from '@cutexiaocai/astro-markdown-render'\n---\n{\n  /* Renders `<h1>Hi, there!</h1>` */\n  await markdown(`# Hi, there!`)\n}\n```\n\n## 用法\n\n将 **Astro Markdown** 添加到您的项目中。\n\n```shell\npnpm add @cutexiaocai/astro-markdown-render\n```\n\n在您的项目中使用 **Astro Markdown**。\n\n```astro\n---\nimport { markdown } from '@cutexiaocai/astro-markdown-render'\n---\n<html lang=\"en\">\n  <head>\n    <meta charset=\"utf-8\" />\n    <meta name=\"viewport\" content=\"width=device-width\" />\n    <title>Astro</title>\n  </head>\n  <body>\n    {await markdown(\n`# Hi, there!\n\nWelcome to my _website_.`\n    )}\n  </body>\n</html>\n```\n\n或者，将 **Astro Markdown** 与您现有的 Astro 配置集成。\n\n```js\n// astro.config.js\nimport { defineConfig } from 'astro/config'\nimport markdownIntegration from '@cutexiaocai/astro-markdown-render'\n\nexport default defineConfig({\n  integrations: [\n    markdownIntegration(),\n  ],\n  markdown: {\n    remarkPlugins: [],\n    rehypePlugins: [],\n    // syntaxHighlight: 'shiki'\n    // syntaxHighlight: 'prism'\n  }\n})\n```\n\n现在 `markdown` 配置会自动应用于 `<Markdown>` 组件和 `markdown()` 函数。\n\n使用 `markdown.inline()` 或 `<Markdown.Inline>` 来处理不带段落包围的短文本字符串。\n\n```astro\n---\nimport { Markdown } from '@cutexiaocai/astro-markdown-render'\n---\n<Markdown.Inline of={\n  /* Renders `Welcome to my <em>website</em>.` */\n  `Welcome to my _website_.`\n} />\n```\n\n```astro\n---\nimport { markdown } from '@cutexiaocai/astro-markdown-render'\n---\n{await markdown.inline(\n  /* Renders `Welcome to my <em>website</em>.` */\n  `Welcome to my _website_.`\n)}\n```\n\n<br />\n\n尽情享用吧！\n\n---\n\n想了解更多？\n请阅读 [Astro 文档][docs-url] 或加入 [Astro Discord][chat-url]。\n\n[chat-url]: https://astro.build/chat\n[docs-url]: https://github.com/withastro/astro\n\n[npm-img]: https://img.shields.io/npm/v/@cutexiaocai/astro-markdown-render?color=%23444&label=&labelColor=%23CB0000&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjE1MCAxNTAgNDAwIDQwMCIgZmlsbD0iI0ZGRiI+PHBhdGggZD0iTTE1MCA1NTBoMjAwVjI1MGgxMDB2MzAwaDEwMFYxNTBIMTUweiIvPjwvc3ZnPg==&style=for-the-badge\n[npm-url]: https://www.npmjs.com/package/@cutexiaocai/astro-markdown-render\n[stackblitz-img]: https://img.shields.io/badge/-Open%20in%20Stackblitz-%231374EF?color=%23444&labelColor=%231374EF&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjEwIDggMTIgMTgiIGhlaWdodD0iMTgiIGZpbGw9IiNGRkYiPjxwYXRoIGQ9Ik0xMCAxNy42aDUuMmwtMyA3LjRMMjIgMTQuNGgtNS4ybDMtNy40TDEwIDE3LjZaIi8+PC9zdmc+&style=for-the-badge\n[stackblitz-url]: https://stackblitz.com/github/X1A0CA1/Astro-Markdown-Render\n[bundlejs-img]: https://img.shields.io/badge/dynamic/json?url=https://bundlejs.com/api?q=@cutexiaocai/astro-markdown-render&query=size.totalCompressedSize&color=%23444&labelColor=%233B82F6&label=&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA3MDAgNzAwIiBmaWxsPSIjRkZGIj4KCTxwYXRoIGQ9Ik0xNDYgMkExNzEgMTcxIDAgMCAwIDMgMTM5bC0yIDExdjQwMmwyIDExYzE1IDcyIDcxIDEyNSAxNDMgMTM2bDIwOSAxIDE5OS0xIDktMmM3MC0xNiAxMTktNjYgMTM0LTEzNWwyLTEwVjE1MGwtMi0xMkExNzEgMTcxIDAgMCAwIDU2MiAzbC0xMC0yLTE5OS0xQzE4NyAwIDE1MyAwIDE0NiAyem0xODEgMjUxdjM2bDctM2MxMy02IDMzLTkgNTAtNyA0MSA1IDcwIDM0IDgwIDc4IDIgMTIgMiA0MSAwIDUzLTUgMjItMTMgMzgtMjcgNTJhODIgODIgMCAwIDEtNjMgMjZjLTE1IDAtMTkgMC0yNS0yLTEwLTItMTctNi0yNC0xMGwtNS0zdjExaC00NVYyMTdoNTJ2MzZ6bTI5IDcxYy0yMCAzLTMyIDE5LTM1IDQ4LTMgMjUgMyA0OCAxNCA2MCA1IDYgMTMgMTAgMjMgMTEgMjUgNCA0NC05IDUxLTM2bDMtMTljMC0xNy0xLTI3LTctMzktOS0xOS0yNi0yOC00OS0yNXoiLz4KPC9zdmc+&style=for-the-badge\n[bundlejs-url]: https://bundlejs.com/?bundle&q=@cutexiaocai/astro-markdown-render\n[download-url]: https://www.npmjs.com/package/@cutexiaocai/astro-markdown-render\n[download-img]: https://img.shields.io/badge/dynamic/json?url=https://api.npmjs.org/downloads/point/last-week/@cutexiaocai/astro-markdown-render&query=downloads&label=⇓+week&color=%23444&labelColor=%23EEd100&style=for-the-badge","readmeFilename":"README.md"}