{"_id":"@7nohe/vite-plugin-vue-marked","_rev":"2-46afc621a6800b28618b29959093529e","name":"@7nohe/vite-plugin-vue-marked","dist-tags":{"latest":"0.2.1"},"versions":{"0.1.1":{"name":"@7nohe/vite-plugin-vue-marked","description":"Vue SFC Markdown Block","version":"0.1.1","main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","license":"MIT","author":{"name":"7nohe"},"repository":{"type":"git","url":"git+https://github.com/7nohe/vite-plugin-vue-marked.git"},"homepage":"https://github.com/7nohe/vite-plugin-vue-marked","bugs":{"url":"https://github.com/7nohe/vite-plugin-vue-marked/issues"},"dependencies":{"@vue/compiler-sfc":"^3.2.37","marked":"^4.0.17"},"peerDependencies":{"vite":"^2.9.12","vue":"^3.2.37"},"devDependencies":{"@antfu/eslint-config":"^0.25.1","@babel/parser":"^7.18.5","@types/marked":"^4.0.3","@vue/shared":"^3.2.37","eslint":"^8.17.0","rollup":"^2.75.6","tsup":"^6.1.2","typescript":"^4.7.3","vite":"^2.9.12","vue":"^3.2.37"},"scripts":{"dev":"npm run build -- --watch","build":"tsup src/index.ts --dts --format cjs,esm","release":"npx git-ensure -a && npx bumpp --commit --tag --push","preview":"tsup src/index.ts --dts --format cjs,esm && npm -C vue-app run dev"},"_id":"@7nohe/vite-plugin-vue-marked@0.1.1","_integrity":"sha512-kqNvxznWRsf4BCsMdMoQLk7u6kOtd7kJCqwWXk342elDHiiLSlUj3q0dMQCauEXWTVoSEXXiLOc4W3QDLSkSSA==","_resolved":"/private/var/folders/hw/1qtf_mjj1fb6b1f6674k_y980000gn/T/c0f040e94443cb200e3a4c32aea1bc20/7nohe-vite-plugin-vue-marked-0.1.1.tgz","_from":"file:7nohe-vite-plugin-vue-marked-0.1.1.tgz","_nodeVersion":"16.14.2","_npmVersion":"8.6.0","dist":{"integrity":"sha512-kqNvxznWRsf4BCsMdMoQLk7u6kOtd7kJCqwWXk342elDHiiLSlUj3q0dMQCauEXWTVoSEXXiLOc4W3QDLSkSSA==","shasum":"600a76f103fef8658408c0ed46d57e175fc2c42e","tarball":"https://registry.npmjs.org/@7nohe/vite-plugin-vue-marked/-/vite-plugin-vue-marked-0.1.1.tgz","fileCount":7,"unpackedSize":1066210,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHGexWkkob9h2LRM5DsAPhQwrItqjs15nhpE7Ywlp7S+AiEA9/2VuZocnacwm+Nn3JUTl4s8EXpUdhwP6cvCw2+eyBU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiq0tcACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq2aA//ZDHdZyOU0cBXis6RR41V79mp9W8/9epXCjamO96yzSHFVKDC\r\nic4xGH5QL+nB/fJLH3RmP+qAzorEmXxilkLSraU3M3MPfvI3E20/oVQWXg3M\r\nFbNPM4cQ86tp0YvJvL1YAujiILpc3pQXbY3wQaZuulP3arCFYQKAu2ZEIsE8\r\nzt8nyXrpGWjnKncqJagsaK3WBB2OAhAefQfC7uMrEa5VN7N1AdQ+Ck57lazZ\r\nCT3k5Hs1rrZeqKYWsG5WoQUiO5hYBrjgqS+rf7+kR3cC+hUTF0f6TrNbCoqT\r\nBrAG6bWfA1UjPdlGjocZNYQ4E/6ODg4QoaHNyISipVsIGqu9emANuHPzPCqL\r\ng0Gzd5y6GBp3KtB+cO4rJdl9QokhtmqwTRPy0HFh3SSJmWz/mW/BJ36K3UgH\r\naRNYcwJqqTCYZtmLSROZDDbqbtZHGwjxWtqq/D0N2fmv0JIwC/uZxcnJt4os\r\nrhJmxpOzVxzur+A5S+b3gjVoiUgaVaaQmJBIgObrER//kaWDwft7V8Nv672X\r\nVnzFllS1DYVm2pnaObElGtgDSpTgfwxReXr66RU81KaBgIwP7zwNMW9qHI0d\r\nn0Nho4EgeZyxw05W0LTzNJtmw3HX6t3MZ+K3JRBPrOxl/9vaTc/NmmKWMKUj\r\n0ykdQYlXu/5VBClMHLnnd9l0oc1bzEuxLeY=\r\n=37Rd\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"7nohe","email":"7nohe.urata@gmail.com"},"directories":{},"maintainers":[{"name":"7nohe","email":"7nohe.urata@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vite-plugin-vue-marked_0.1.1_1655393116531_0.5162686382054076"},"_hasShrinkwrap":false},"0.2.0":{"name":"@7nohe/vite-plugin-vue-marked","description":"Vue SFC Markdown Block","version":"0.2.0","main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","license":"MIT","author":{"name":"7nohe"},"keywords":["vue","vite","vue-marked","markdown"],"repository":{"type":"git","url":"git+https://github.com/7nohe/vite-plugin-vue-marked.git"},"homepage":"https://github.com/7nohe/vite-plugin-vue-marked","bugs":{"url":"https://github.com/7nohe/vite-plugin-vue-marked/issues"},"scripts":{"dev":"npm run build -- --watch","build":"tsup src/index.ts --dts --format cjs,esm","prepublishOnly":"npm run build","release":"npx git-ensure -a && npx bumpp --commit --tag --push","preview":"tsup src/index.ts --dts --format cjs,esm && npm -C examples/vue-app run dev"},"dependencies":{"@vue/compiler-sfc":"^3.2.37","marked":"^4.0.18"},"peerDependencies":{"vite":"^3.0.0","vue":"^3.2.37"},"devDependencies":{"@antfu/eslint-config":"^0.25.2","@babel/parser":"^7.18.8","@types/marked":"^4.0.3","@vue/shared":"^3.2.37","eslint":"^8.20.0","rollup":"^2.77.0","tsup":"^6.1.3","typescript":"^4.7.4","vite":"^3.0.0","vue":"^3.2.37"},"gitHead":"b283c0fa72d2228ec04d4bbad82395be93f60e3b","_id":"@7nohe/vite-plugin-vue-marked@0.2.0","_nodeVersion":"16.14.2","_npmVersion":"8.13.1","dist":{"integrity":"sha512-MdxCVTGzxdA91CHFvojj/P81Wy3MtOC092xOuhOktcDbeVjwJUDc2k3nL2l9zRPdGX5lQ4hwwHxJc8+moFCltw==","shasum":"050b5f2a849a72b3271c1f1e8a57676349eeb0e8","tarball":"https://registry.npmjs.org/@7nohe/vite-plugin-vue-marked/-/vite-plugin-vue-marked-0.2.0.tgz","fileCount":7,"unpackedSize":1069952,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8Y75rkqMaFZqSBmdlV/flYfXePyFnDW4oERx39Y8TEgIhAOKM4G2PsgKagMiykRPp24k0TeefhpqvaYWjsL5ztN/R"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi1IzRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoU2A//dr6E+6EMlaKitdmWz3qyp/hlMV9h9juOH/4W2fOOqx941hvf\r\nDZslwYfgrYqR2OY3OGmGJUIWKofGkIfqnEipXRXploK0UtSPFm6x47QuBH0U\r\nAJoHnaAuI47QpdEHPDaIAw6talZJRJoIHDh/xVp/L4Bq+LfIfBurkJRAXnCQ\r\ngwHWLkCPdWdYXJAGw82Mj8OMx3uqRgzbs7b+U1dZqs5XuYnqmlb2WJl5E1h3\r\nsztWkQZ5+7/i5lItP/s2CRvCN+wJWhtz5esL/TvbRYuLK0Pl6ex/vVH6TyVV\r\n0glEPRVbRn/Ws55ByFw500En4VXDc7dF0+LhtC0rYwI0Wi/2zdNyIbmWJ0Sf\r\nI80sCdbpHmSriW/BpCquIQXq3PaDDjZigIs5t9yP3cR+JdacnoE7gJ6KEaW5\r\ns4+W4C4yGFO0cLVNc1wH9rCRXWH8y1sF3l2bs2YPFf19tdblbpC1mSo4jPwp\r\nhr5nRuLAxhOkAxs3RaUZtVhojZXCwQ2qDTj5UdhwBSPtkUsSIp/IBeGKy2zD\r\ntLDbIVVKkJT5EHLhoYe0kTgBkNHOibIj4sq5I6q8SX+YZzcS+QpOntoi2tjG\r\nLCGaR0JMyvKX8Xz0lEiMKkIPhp682pTwLg6wTB/BFdJ1MQ+jg9xcj3RQvED1\r\np46UGBLp1+2AIfA/BZ+eagGgLwCnbxytr34=\r\n=owcs\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"7nohe","email":"7nohe.urata@gmail.com"},"directories":{},"maintainers":[{"name":"7nohe","email":"7nohe.urata@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vite-plugin-vue-marked_0.2.0_1658096849424_0.027006499503980264"},"_hasShrinkwrap":false},"0.2.1":{"name":"@7nohe/vite-plugin-vue-marked","description":"Vue SFC Markdown Block","version":"0.2.1","main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","license":"MIT","author":{"name":"7nohe"},"keywords":["vue","vite","vue-marked","markdown"],"repository":{"type":"git","url":"git+https://github.com/7nohe/vite-plugin-vue-marked.git"},"homepage":"https://github.com/7nohe/vite-plugin-vue-marked","bugs":{"url":"https://github.com/7nohe/vite-plugin-vue-marked/issues"},"scripts":{"dev":"npm run build -- --watch","build":"tsup src/index.ts --dts --format cjs,esm","prepublishOnly":"npm run build","release":"npx git-ensure -a && npx bumpp --commit --tag --push","preview":"tsup src/index.ts --dts --format cjs,esm && npm -C examples/vue-app run dev"},"dependencies":{"@vue/compiler-sfc":"^3.2.37","marked":"^4.0.18","mermaid":"^9.1.3"},"peerDependencies":{"vite":"^3.0.0","vue":"^3.2.37"},"devDependencies":{"@antfu/eslint-config":"^0.25.2","@babel/parser":"^7.18.8","@types/marked":"^4.0.3","@types/mermaid":"^8.2.9","@vue/shared":"^3.2.37","eslint":"^8.20.0","rollup":"^2.77.0","tsup":"^6.1.3","typescript":"^4.7.4","vite":"^3.0.0","vue":"^3.2.37"},"gitHead":"95cead2d91fd27f7427acba2ab7a748b51475f83","_id":"@7nohe/vite-plugin-vue-marked@0.2.1","_nodeVersion":"16.14.2","_npmVersion":"8.13.1","dist":{"integrity":"sha512-o5Eoau3UE//PL8YCer3GBGZ7PoANsr+1LdnsVFGLKEnmHnL6Ndi+qB0Y6/PblZ8SjABxfIXuFpk8ySDfXTLbkg==","shasum":"6f2a3ae88e4dbb3a57f496c42724259e116016bb","tarball":"https://registry.npmjs.org/@7nohe/vite-plugin-vue-marked/-/vite-plugin-vue-marked-0.2.1.tgz","fileCount":7,"unpackedSize":1071382,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBUuN1BtUwb2YvPykrw1/91GofWQvELAvOifklGBeNp6AiEA+7XLHjjrNRFC7XBrn7WcTDOB+1xK8FUmK7qC6f+2l7g="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi1rYmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo8Lg//TJhPRRvq3bOL4i4SZXhjNOEJfGBdMwC4/t5KNdXmheNi3q+o\r\nIEyRUsDe+qWiKN84nlLWAtXjHaN7/vTwVSfq+uvVeAm72KRclYm3FCSuX0G6\r\nCaK9GEiY8Qy0yZJGjbpODFjPGolmocPt8ky2MRiNN9Ylur+AvDXWYipq1Ycy\r\nrvZV0vO6HSSckoqILzMZlDbcfNGnkeZIKD4t3jiIhQBvfox903GyN8RDZubS\r\nMoZpXXGIEidevu3yOxulCgLhOsd2ESCxLGB7qLgHmo02HKLZOJ3jvYFeDJ6k\r\nkHyf4rmmXg+LxqnKlSkUFM+SCUx595LBtfwCUujmTyJdeU0rMl2bfdVQl2OE\r\na1MXCnhyfDxHXxoAE8ks+lxcEUmn8GDcECIE8EyMAMejwb/HUtF1Y0OpTNKL\r\ngy62jpNeaT/HzOmk7FNN6q16Im42mCFyQF+PUu0vEtvxGDmtBW1Tmixb4yHO\r\nE73BxTlW2lfuEpruRtjbCjlR+ZgZi5jGz58cKYJQGETcp7N4ttls99EYZlaE\r\nE/Dv5ys5cFz1vv6qnP3/55iyjdfk8P6s5l5IeJRkN4TpjONS6FVMP9wNJRjI\r\n1vqE2ih6b2zBHlrsj1hT2Y05C2UTrSeXqs55/aBMH9M8IM3I51HSQKQkNKE6\r\n5jWNhaVhXHSuJ9Xjy9/TjsBDvM+qcyDjmGw=\r\n=pTDU\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"7nohe","email":"7nohe.urata@gmail.com"},"directories":{},"maintainers":[{"name":"7nohe","email":"7nohe.urata@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vite-plugin-vue-marked_0.2.1_1658238501798_0.7643039770451581"},"_hasShrinkwrap":false}},"time":{"created":"2022-06-16T15:25:16.479Z","0.1.1":"2022-06-16T15:25:16.748Z","modified":"2022-07-19T13:48:22.109Z","0.2.0":"2022-07-17T22:27:29.622Z","0.2.1":"2022-07-19T13:48:22.024Z"},"maintainers":[{"name":"7nohe","email":"7nohe.urata@gmail.com"}],"description":"Vue SFC Markdown Block","homepage":"https://github.com/7nohe/vite-plugin-vue-marked","repository":{"type":"git","url":"git+https://github.com/7nohe/vite-plugin-vue-marked.git"},"author":{"name":"7nohe"},"bugs":{"url":"https://github.com/7nohe/vite-plugin-vue-marked/issues"},"license":"MIT","readme":"# vite-plugin-vue-marked\n\nThis plugin allows you to use `markdown` blocks in your Vue SFC with Vite\n**⚠️ This plugin currently only works with the \\<script setup> format**\n\n## Install\n\nInstall the pacakge\n```bash\nnpm install -D @7nohe/vite-plugin-vue-marked\n```\n\nAdd to your `vite.config.ts`\n\n```ts\nimport { defineConfig } from \"vite\";\nimport vue from \"@vitejs/plugin-vue\";\nimport vueMarked from \"@7nohe/vite-plugin-vue-marked\";\n\nexport default defineConfig({\n  plugins: [vue(), vueMarked()],\n});\n```\n\n## Usage\n```vue\n<!-- Example.vue -->\n<script setup lang=\"ts\">\nimport VMarked from 'vmarked';\n</script>\n\n<template>\n  <VMarked />\n</template>\n\n<markdown>\n# Heading 1\n## Heading 2\n### Heading 3\n</markdown>\n```\n\nYou can use [marked](https://marked.js.org/) options to customize the generated HTML code. \n\n```ts\nimport { defineConfig } from \"vite\";\nimport vue from \"@vitejs/plugin-vue\";\nimport vueMarked from \"@7nohe/vite-plugin-vue-marked\";\nimport hljs from \"highlight.js\";\n\nconst renderer = {\n  heading(text, level) {\n    const escapedText = text.toLowerCase().replace(/[^\\w]+/g, \"-\");\n\n    return `\n            <h${level}>\n              <a name=\"${escapedText}\" class=\"anchor\" href=\"#${escapedText}\">\n                <span class=\"header-link\"></span>\n              </a>\n              ${text}\n            </h${level}>`;\n  },\n};\n\nexport default defineConfig({\n  plugins: [\n    vue(),\n    vueMarked({\n      options: {\n        highlight: function (code, lang) {\n          const language = hljs.getLanguage(lang) ? lang : \"plaintext\";\n          return hljs.highlight(code, { language }).value;\n        },\n      },\n      extensions: [{ renderer }],\n    }),\n  ],\n});\n```\n\nAn example app is available in the `/examples/vue-app` directory.\n\n## Options\n\n| name         | type              | describe                                                                  |\n| ------------ | ----------------- | ------------------------------------------------------------------------- |\n| options      | MarkedOptions     | marked's [setOptions config](https://marked.js.org/using_advanced#options)|\n| extensions   | MarkedExtension[] | marked's [marked.use(extension)](https://marked.js.org/using_pro#use)     |\n| mermaid      | mermaidAPI.Config | [Mermaid API Configuration](https://mermaid-js.github.io/mermaid/#/Setup) |\n\n## License\n\nMIT\n","readmeFilename":"README.md","keywords":["vue","vite","vue-marked","markdown"]}