{"_id":"marked-code-preview","_rev":"12-81e8ad7cb68a71f3936a3dff51d757db","name":"marked-code-preview","dist-tags":{"latest":"1.3.7"},"versions":{"1.0.0":{"name":"marked-code-preview","version":"1.0.0","keywords":["marked","marked-extension","code","codefence","markdown","html","preview","snippet","template","stilearning-marked-extensions"],"author":{"url":"https://stilearning.com","name":"Beni Arisandi"},"license":"MIT","_id":"marked-code-preview@1.0.0","maintainers":[{"name":"bent10","email":"bent10@stilearning.com"}],"homepage":"https://github.com/bent10/marked-extensions/tree/main/packages/code-preview","bugs":{"url":"https://github.com/bent10/marked-extensions/issues"},"dist":{"shasum":"17292cb1b74b7c155125ad05fc6999f90b806bef","tarball":"https://registry.npmjs.org/marked-code-preview/-/marked-code-preview-1.0.0.tgz","fileCount":10,"integrity":"sha512-5nxFA+BaUqM3n/ERbimmxso7J+xPd0kXJfY6Q89mOZKbtVvEkXGoDEIseW7x1Zu1XftxXC4LyhL9u/4SfQov5A==","signatures":[{"sig":"MEQCIHNWZ1mI7gKOc2rcqxfFvyKaG6I6RQLxy7+/Oz1uND4pAiAG+ruAKfZumPg+KLhK7M0clGc0uLwMBWHnmyASF96WBA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":24430},"main":"dist/index.umd.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.umd.cjs"}},"gitHead":"9d2b1c1b3a7fc9fbb822ddcc33d2b158710623c6","scripts":{"dev":"vite build:ssr --watch","lint":"tsc --noEmit && eslint . --cache --cache-location ../../node_modules/.eslint","prod":"vite build && vite","test":"vitest","build":"npm run build:ssr && npm run build:prod && npm run types","start":"npm run prod","types":"tsc -d --emitDeclarationOnly --outDir ./dist","format":"prettier . --write --cache-location ../../node_modules/.prettier --ignore-path ../../.prettierignore","coverage":"vitest run --coverage","build:ssr":"vite build --ssr src/index.ts","build:prod":"vite build"},"_npmUser":{"name":"bent10","email":"bent10@stilearning.com"},"repository":{"url":"git+https://github.com/bent10/marked-extensions.git","type":"git"},"_npmVersion":"10.1.0","description":"A Marked extension for transforming code blocks into code previews","directories":{},"_nodeVersion":"18.17.1","dependencies":{"pupa":"^3.1.0","attributes-parser":"^1.0.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"marked":">=7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/marked-code-preview_1.0.0_1695725424786_0.4853031464704849","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"marked-code-preview","version":"1.0.1","keywords":["marked","marked-extension","code","codefence","markdown","html","preview","snippet","template","stilearning-marked-extensions"],"author":{"url":"https://stilearning.com","name":"Beni Arisandi"},"license":"MIT","_id":"marked-code-preview@1.0.1","maintainers":[{"name":"bent10","email":"bent10@stilearning.com"}],"homepage":"https://github.com/bent10/marked-extensions/tree/main/packages/code-preview","bugs":{"url":"https://github.com/bent10/marked-extensions/issues"},"dist":{"shasum":"8d0f51e9db331dd02ca685d73ca93a21215e0f98","tarball":"https://registry.npmjs.org/marked-code-preview/-/marked-code-preview-1.0.1.tgz","fileCount":10,"integrity":"sha512-jieyz17nTrOTQ4iyqur0cOGC7HNNSXxDm7pypwHxpGl++eCvQjKrtNNylwr3snHIzxHmma8a78dV5ZlspKhdww==","signatures":[{"sig":"MEYCIQD/F2G+S/El/HJdLxTPPZDjcgfg4+KhlYRxwMHvftL9ZAIhAJbfoEhK7Jh2oA2FqMltZ6doxbDI9DImWDzOFvpiKsOY","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26571},"main":"dist/index.umd.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.umd.cjs"}},"gitHead":"7cae2824f780cfddd9cad3af737674ed56dc8ae1","scripts":{"dev":"vite build:ssr --watch","lint":"tsc --noEmit && eslint . --cache --cache-location ../../node_modules/.eslint","prod":"vite build && vite","test":"vitest","build":"npm run build:ssr && npm run build:prod && npm run types","start":"npm run prod","types":"tsc -d --emitDeclarationOnly --outDir ./dist","format":"prettier . --write --cache-location ../../node_modules/.prettier --ignore-path ../../.prettierignore","coverage":"vitest run --coverage","build:ssr":"vite build --ssr src/index.ts","build:prod":"vite build"},"_npmUser":{"name":"bent10","email":"bent10@stilearning.com"},"repository":{"url":"git+https://github.com/bent10/marked-extensions.git","type":"git"},"_npmVersion":"10.1.0","description":"A Marked extension for transforming code blocks into code previews","directories":{},"_nodeVersion":"18.18.0","dependencies":{"attributes-parser":"^1.0.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"marked":">=7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/marked-code-preview_1.0.1_1695970439835_0.11484887497174623","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"marked-code-preview","version":"1.1.0","keywords":["marked","marked-extension","code","codefence","markdown","html","preview","snippet","template","stilearning-marked-extensions"],"author":{"url":"https://stilearning.com","name":"Beni Arisandi"},"license":"MIT","_id":"marked-code-preview@1.1.0","maintainers":[{"name":"bent10","email":"bent10@stilearning.com"}],"homepage":"https://github.com/bent10/marked-extensions/tree/main/packages/code-preview","bugs":{"url":"https://github.com/bent10/marked-extensions/issues"},"dist":{"shasum":"94c42f1aa63897bd75c997ce451a49eb9d2b3192","tarball":"https://registry.npmjs.org/marked-code-preview/-/marked-code-preview-1.1.0.tgz","fileCount":10,"integrity":"sha512-IHqCqCtDuoVPA2JbD4jgU4MleR1CoSIJhrg+FEXdoijcaH2FSg2WIDWMIdTQGyEtqesq5BKuQzrt/WrCA6g3/Q==","signatures":[{"sig":"MEUCIEB6CAXP9cXQFdbsbAHv5sHJsY0vyw25cnYDjmuX83KRAiEAxLb96RnsMYzsjjGHjFQkkHyGaALBSmC6+ZjeAAlA5Jw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":27303},"main":"dist/index.umd.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.umd.cjs"}},"gitHead":"632a7b91d62498a9779b747888bcb6d8f49ac765","scripts":{"dev":"vite build:ssr --watch","lint":"tsc --noEmit && eslint . --cache --cache-location ../../node_modules/.eslint","prod":"vite build && vite","test":"vitest","build":"npm run build:ssr && npm run build:prod && npm run types","start":"npm run prod","types":"tsc -d --emitDeclarationOnly --outDir ./dist","format":"prettier . --write --cache-location ../../node_modules/.prettier --ignore-path ../../.prettierignore","coverage":"vitest run --coverage","build:ssr":"vite build --ssr src/index.ts","build:prod":"vite build"},"_npmUser":{"name":"bent10","email":"bent10@stilearning.com"},"repository":{"url":"git+https://github.com/bent10/marked-extensions.git","type":"git"},"_npmVersion":"10.1.0","description":"A Marked extension for transforming code blocks into code previews","directories":{},"_nodeVersion":"18.18.0","dependencies":{"attributes-parser":"^1.0.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"marked":">=7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/marked-code-preview_1.1.0_1696164363670_0.8972278624835606","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"marked-code-preview","version":"1.2.0","keywords":["marked","marked-extension","code","codefence","markdown","html","preview","snippet","template","stilearning-marked-extensions"],"author":{"url":"https://stilearning.com","name":"Beni Arisandi"},"license":"MIT","_id":"marked-code-preview@1.2.0","maintainers":[{"name":"bent10","email":"bent10@stilearning.com"}],"homepage":"https://github.com/bent10/marked-extensions/tree/main/packages/code-preview","bugs":{"url":"https://github.com/bent10/marked-extensions/issues"},"dist":{"shasum":"6c18d58441f2a1369bafc618d71317a9ba904faa","tarball":"https://registry.npmjs.org/marked-code-preview/-/marked-code-preview-1.2.0.tgz","fileCount":10,"integrity":"sha512-2tmxawJsdqxGe671gpOaGv7hdLMjudvnMHHUzVgZPTvBfJrfED/S27YO2oBLbxrw+QoA16CgD6qHUqMlmZreRQ==","signatures":[{"sig":"MEUCIF3Eg/qPpNFPihWe3B+cGSH759Wa27i+NEcFzgdjyQLhAiEAj/hTGL9gf6JfDZ3/W1qwShi8v943yxfSy1VpWIaxVjQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":47391},"main":"dist/index.umd.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.umd.cjs"}},"gitHead":"4968e7188b46eea04c59326b5e1419c0cf88a300","scripts":{"dev":"vite build:ssr --watch","lint":"tsc --noEmit && eslint . --cache --cache-location ../../node_modules/.eslint","prod":"vite build && vite","test":"vitest","build":"npm run build:ssr && npm run build:prod && npm run types","start":"npm run prod","types":"tsc -d --emitDeclarationOnly --outDir ./dist","format":"prettier . --write --cache-location ../../node_modules/.prettier --ignore-path ../../.prettierignore","coverage":"vitest run --coverage","build:ssr":"vite build --ssr src/index.ts","build:prod":"vite build"},"_npmUser":{"name":"bent10","email":"bent10@stilearning.com"},"repository":{"url":"git+https://github.com/bent10/marked-extensions.git","type":"git"},"_npmVersion":"10.1.0","description":"A Marked extension for transforming code blocks into code previews","directories":{},"_nodeVersion":"18.18.0","dependencies":{"attributes-parser":"^1.0.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"marked":">=7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/marked-code-preview_1.2.0_1696231828427_0.9458818592798008","host":"s3://npm-registry-packages"}},"1.2.1":{"name":"marked-code-preview","version":"1.2.1","keywords":["marked","marked-extension","code","codefence","markdown","html","preview","snippet","template","stilearning-marked-extensions"],"author":{"url":"https://stilearning.com","name":"Beni Arisandi"},"license":"MIT","_id":"marked-code-preview@1.2.1","maintainers":[{"name":"bent10","email":"bent10@stilearning.com"}],"homepage":"https://github.com/bent10/marked-extensions/tree/main/packages/code-preview","bugs":{"url":"https://github.com/bent10/marked-extensions/issues"},"dist":{"shasum":"8bd3bef542716a50bee2cc92b53f434f29be6541","tarball":"https://registry.npmjs.org/marked-code-preview/-/marked-code-preview-1.2.1.tgz","fileCount":10,"integrity":"sha512-gp//xQhfZES7qBFrckjUkANAMCROLETuAFVR9g1aFQWUWzhCW+b3Kaev3KsYIpWdWBPVNBrrtoPCG0ajTF+YAg==","signatures":[{"sig":"MEQCIHikqbxGjv3OvaZK1bjmC0bK0Je1K72h0E7pz7CEFwArAiB69FRhJwxOYgxQvZyT7fs3+qVQuu3M/qLx+u1ISmNpfA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":50029},"main":"dist/index.umd.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.umd.cjs"}},"gitHead":"b6ad8c53c14615fbd53158727f750b2a73df2cdd","scripts":{"dev":"vite build:ssr --watch","lint":"tsc --noEmit && eslint . --cache --cache-location ../../node_modules/.eslint","prod":"vite build && vite","test":"vitest","build":"npm run build:ssr && npm run build:prod && npm run types","start":"npm run prod","types":"tsc -d --emitDeclarationOnly --outDir ./dist","format":"prettier . --write --cache-location ../../node_modules/.prettier --ignore-path ../../.prettierignore","coverage":"vitest run --coverage","build:ssr":"vite build --ssr src/index.ts","build:prod":"vite build"},"_npmUser":{"name":"bent10","email":"bent10@stilearning.com"},"repository":{"url":"git+https://github.com/bent10/marked-extensions.git","type":"git"},"_npmVersion":"10.2.0","description":"A Marked extension for transforming code blocks into code previews","directories":{},"_nodeVersion":"18.18.0","dependencies":{"attributes-parser":"^2.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"marked":">=7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/marked-code-preview_1.2.1_1697304263369_0.9359791797652941","host":"s3://npm-registry-packages"}},"1.3.0":{"name":"marked-code-preview","version":"1.3.0","keywords":["marked","marked-extension","code","codefence","markdown","html","preview","snippet","template","stilearning-marked-extensions"],"author":{"url":"https://stilearning.com","name":"Beni Arisandi"},"license":"MIT","_id":"marked-code-preview@1.3.0","maintainers":[{"name":"bent10","email":"bent10@stilearning.com"}],"homepage":"https://github.com/bent10/marked-extensions/tree/main/packages/code-preview","bugs":{"url":"https://github.com/bent10/marked-extensions/issues"},"dist":{"shasum":"591255dfd3ec61090a646dacab3cfac412253307","tarball":"https://registry.npmjs.org/marked-code-preview/-/marked-code-preview-1.3.0.tgz","fileCount":11,"integrity":"sha512-DGOsD8dY9Kug0jrdkMHglcwD7fcWimBfGvG1MAUKzCjWdWAp0/5R56daXJz9oBQdNjPZyrYfaf/K6PVd2rPEjw==","signatures":[{"sig":"MEQCIC8OJbtHCg8VaeegtzBNUjBbr7taXlH2Gv+BUB2S9N4oAiBQEPuhFog3y8DqxkoIbJ0gGZglkIBlGCMasnT+5TdLtA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20875},"main":"./dist/index.cjs.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.es.js","browser":"./dist/index.umd.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.es.js","require":"./dist/index.cjs.js"}},"gitHead":"c3b9c35d3db276d617edb560dd0783f2a909a15f","scripts":{"dev":"vite build --watch","lint":"tsc --noEmit && eslint . --cache --cache-location ../../node_modules/.eslint","test":"vitest","build":"vite build && npm run types","start":"vite","types":"tsc -d --emitDeclarationOnly --outDir ./dist","format":"prettier . --write --cache-location ../../node_modules/.prettier --ignore-path ../../.prettierignore","coverage":"vitest run --coverage"},"_npmUser":{"name":"bent10","email":"bent10@stilearning.com"},"repository":{"url":"git+https://github.com/bent10/marked-extensions.git","type":"git"},"_npmVersion":"10.2.1","description":"A Marked extension for transforming code blocks into code previews","directories":{},"_nodeVersion":"18.18.2","dependencies":{"attributes-parser":"^2.1.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"marked":">=7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/marked-code-preview_1.3.0_1697799353984_0.4110468200569519","host":"s3://npm-registry-packages"}},"1.3.1":{"name":"marked-code-preview","version":"1.3.1","keywords":["marked","marked-extension","code","codefence","markdown","html","preview","snippet","template","stilearning-marked-extensions"],"author":{"url":"https://stilearning.com","name":"Beni Arisandi"},"license":"MIT","_id":"marked-code-preview@1.3.1","maintainers":[{"name":"bent10","email":"bent10@stilearning.com"}],"homepage":"https://github.com/bent10/marked-extensions/tree/main/packages/code-preview","bugs":{"url":"https://github.com/bent10/marked-extensions/issues"},"dist":{"shasum":"139aed8b9284e707bbadc604f06053e59a835be2","tarball":"https://registry.npmjs.org/marked-code-preview/-/marked-code-preview-1.3.1.tgz","fileCount":11,"integrity":"sha512-LGemSocRHKSZ6k4gH8q5opDDR6nDYq3Wa6i91JGuGV0PrmScmoSgUsT0gqve7ZA7iBGAjPmXypBMtK8c3NGYjg==","signatures":[{"sig":"MEQCIGcpvmmNe+NMHaIHaM2BICzqq30YyOdiq0UDRKtjralcAiAD1+T1s6ukpbCWUwOqMdrEVpNIy63LRkX8LX2nbg/E7A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21186},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","browser":"./dist/index.umd.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"25d97a271b93836000ff2abcf213b3bc234022d3","scripts":{"dev":"vite build --watch","lint":"tsc --noEmit && eslint . --cache --cache-location ../../node_modules/.eslint","test":"vitest","build":"vite build && npm run types","start":"vite","types":"tsc -d --emitDeclarationOnly --outDir ./dist","format":"prettier . --write --cache-location ../../node_modules/.prettier --ignore-path ../../.prettierignore","coverage":"vitest run --coverage"},"_npmUser":{"name":"bent10","email":"bent10@stilearning.com"},"repository":{"url":"git+https://github.com/bent10/marked-extensions.git","type":"git"},"_npmVersion":"10.2.1","description":"A Marked extension for transforming code blocks into code previews","directories":{},"_nodeVersion":"18.18.2","dependencies":{"attributes-parser":"^2.1.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"marked":">=7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/marked-code-preview_1.3.1_1698294958687_0.07505720665059856","host":"s3://npm-registry-packages"}},"1.3.2":{"name":"marked-code-preview","version":"1.3.2","keywords":["marked","marked-extension","code","codefence","markdown","html","preview","snippet","template","stilearning-marked-extensions"],"author":{"url":"https://stilearning.com","name":"Beni Arisandi"},"license":"MIT","_id":"marked-code-preview@1.3.2","maintainers":[{"name":"bent10","email":"bent10@stilearning.com"}],"homepage":"https://github.com/bent10/marked-extensions/tree/main/packages/code-preview","bugs":{"url":"https://github.com/bent10/marked-extensions/issues"},"dist":{"shasum":"e93dece5c6ec074fe2262de28a897accf082ee32","tarball":"https://registry.npmjs.org/marked-code-preview/-/marked-code-preview-1.3.2.tgz","fileCount":11,"integrity":"sha512-4kcR9EP1IGlK4B/DtoWon8S7gC/oVD2XQbzdP292FBT6WaHx/QuW5AgAd6L5Q0lIrPzUclNaCr4CHcdMOr0Zqg==","signatures":[{"sig":"MEUCIQD8ZZUk15/ACVYEnuAtTvX/bzPLe/kKjbjRpnbtZoZOmAIgeGtVS+ZwNBZT7V0vWJHUDoBcNh1zWD5cqd/YMsfeIus=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21497},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","browser":"./dist/index.umd.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"73defaef241aaaf72f1915fe2d5eb14c90da45a0","scripts":{"dev":"vite build --watch","lint":"tsc --noEmit && eslint . --cache --cache-location ../../node_modules/.eslint","test":"vitest","build":"vite build && npm run types","start":"vite","types":"tsc -d --emitDeclarationOnly --outDir ./dist","format":"prettier . --write --cache-location ../../node_modules/.prettier --ignore-path ../../.prettierignore","coverage":"vitest run --coverage"},"_npmUser":{"name":"bent10","email":"bent10@stilearning.com"},"repository":{"url":"git+https://github.com/bent10/marked-extensions.git","type":"git"},"_npmVersion":"10.2.1","description":"A Marked extension for transforming code blocks into code previews","directories":{},"_nodeVersion":"18.18.2","dependencies":{"attributes-parser":"^2.2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"marked":">=7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/marked-code-preview_1.3.2_1698334382330_0.8580126788630353","host":"s3://npm-registry-packages"}},"1.3.3":{"name":"marked-code-preview","version":"1.3.3","keywords":["marked","marked-extension","code","codefence","markdown","html","preview","snippet","template","stilearning-marked-extensions"],"author":{"url":"https://stilearning.com","name":"Beni Arisandi"},"license":"MIT","_id":"marked-code-preview@1.3.3","maintainers":[{"name":"bent10","email":"bent10@stilearning.com"}],"homepage":"https://github.com/bent10/marked-extensions/tree/main/packages/code-preview","bugs":{"url":"https://github.com/bent10/marked-extensions/issues"},"dist":{"shasum":"5692dfcfd716ab307f3a287eab73a9cd5396a954","tarball":"https://registry.npmjs.org/marked-code-preview/-/marked-code-preview-1.3.3.tgz","fileCount":11,"integrity":"sha512-qByxbL1Z0jZ/lsxwrhWMuQ4lwfdsrj1ng7dXHB3IKNQyXHhviC0gr+eDPWUgczKc96CyGAsbEAB00IRGW2mTaw==","signatures":[{"sig":"MEUCIBC/No0A0zqns9asqsg40N9PNAOMMjx+DljIWrlk4lA5AiEAubIL6iZjc9f5nb7iprIrAJPH0M2iQ/7Fhe3PIMtzOa0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21791},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","browser":"./dist/index.umd.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"0e34770fd8d69c82a2a5406c8126cf9f4580b33d","scripts":{"dev":"vite build --watch","lint":"tsc --noEmit && eslint . --cache --cache-location ../../node_modules/.eslint","test":"vitest","build":"vite build && npm run types","start":"vite","types":"tsc -d --emitDeclarationOnly --outDir ./dist","format":"prettier . --write --cache-location ../../node_modules/.prettier --ignore-path ../../.prettierignore","coverage":"vitest run --coverage"},"_npmUser":{"name":"bent10","email":"bent10@stilearning.com"},"repository":{"url":"git+https://github.com/bent10/marked-extensions.git","type":"git"},"_npmVersion":"10.2.3","description":"A Marked extension for transforming code blocks into code previews","directories":{},"_nodeVersion":"18.18.2","dependencies":{"attributes-parser":"^2.2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"marked":">=7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/marked-code-preview_1.3.3_1699011600630_0.18867020906847132","host":"s3://npm-registry-packages"}},"1.3.4":{"name":"marked-code-preview","version":"1.3.4","keywords":["marked","marked-extension","code","codefence","markdown","html","preview","snippet","template","stilearning-marked-extensions"],"author":{"url":"https://stilearning.com","name":"Beni Arisandi"},"license":"MIT","_id":"marked-code-preview@1.3.4","maintainers":[{"name":"bent10","email":"bent10@stilearning.com"}],"homepage":"https://github.com/bent10/marked-extensions/tree/main/packages/code-preview","bugs":{"url":"https://github.com/bent10/marked-extensions/issues"},"dist":{"shasum":"5c29c836a72763345b4ee27dbd75105b09280194","tarball":"https://registry.npmjs.org/marked-code-preview/-/marked-code-preview-1.3.4.tgz","fileCount":11,"integrity":"sha512-LYD04kBY3TZ6uncLuSWhOK5nR0FehOZNqNT6dkskVuWY7svb32FatybK8TUl0lGsxa+0YjTpfuwEb8r/9rZv/A==","signatures":[{"sig":"MEUCID/JY8wz74OlJbDOpjAjY/IEyE+37MSP2mvAxvDYXznuAiEA06WMb5ORm2FmThKyydvx/i5x7PCyTfKuJ9H7lRCjCrc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22121},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","browser":"./dist/index.umd.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"5ad94581100be4b84fbc0636ba0a66ac2e86d500","scripts":{"dev":"vite build --watch","lint":"tsc --noEmit && eslint . --cache --cache-location ../../node_modules/.eslint","test":"vitest","build":"vite build && npm run types","start":"vite","types":"tsc -d --emitDeclarationOnly --outDir ./dist","format":"prettier . --write --cache-location ../../node_modules/.prettier --ignore-path ../../.prettierignore","coverage":"vitest run --coverage"},"_npmUser":{"name":"bent10","email":"bent10@stilearning.com"},"repository":{"url":"git+https://github.com/bent10/marked-extensions.git","type":"git"},"_npmVersion":"10.2.3","description":"A Marked extension for transforming code blocks into code previews","directories":{},"_nodeVersion":"18.18.2","dependencies":{"attributes-parser":"^2.2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"marked":">=7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/marked-code-preview_1.3.4_1699837376926_0.3216273301958583","host":"s3://npm-registry-packages"}},"1.3.5":{"name":"marked-code-preview","version":"1.3.5","keywords":["marked","marked-extension","code","codefence","markdown","html","preview","snippet","template","stilearning-marked-extensions"],"author":{"url":"https://stilearning.com","name":"Beni Arisandi"},"license":"MIT","_id":"marked-code-preview@1.3.5","maintainers":[{"name":"bent10","email":"bent10@stilearning.com"}],"homepage":"https://github.com/bent10/marked-extensions/tree/main/packages/code-preview","bugs":{"url":"https://github.com/bent10/marked-extensions/issues"},"dist":{"shasum":"1ceb5880951801a412a814f3bdf84b01c40815e6","tarball":"https://registry.npmjs.org/marked-code-preview/-/marked-code-preview-1.3.5.tgz","fileCount":11,"integrity":"sha512-3lkuqmUW6D/GHskYslhnbcAzQ6mCBOTbxv0Ygk6cnqbf53cMPejmtQ6iK50vW9P+/milE7jRfPnOFfzCHYml0A==","signatures":[{"sig":"MEUCIBMZjbeWtLF5GN1VczmZClistRMkNwXNE0XfUhUzs/zOAiEA6DeHxNztHt0y2oA8aa3P2SMHD7ULtmz5fsorZljJwQk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22411},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","browser":"./dist/index.umd.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"321b09e990315258824b8169057868c007572e55","scripts":{"dev":"vite build --watch","lint":"tsc --noEmit && eslint . --cache --cache-location ../../node_modules/.eslint","test":"vitest","build":"vite build && npm run types","start":"vite","types":"tsc -d --emitDeclarationOnly --outDir ./dist","format":"prettier . --write --cache-location ../../node_modules/.prettier --ignore-path ../../.prettierignore","coverage":"vitest run --coverage"},"_npmUser":{"name":"bent10","email":"bent10@stilearning.com"},"repository":{"url":"git+https://github.com/bent10/marked-extensions.git","type":"git"},"_npmVersion":"10.2.5","description":"A Marked extension for transforming code blocks into code previews","directories":{},"_nodeVersion":"18.19.0","dependencies":{"attributes-parser":"^2.2.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"marked":">=7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/marked-code-preview_1.3.5_1702727518592_0.28219533373786176","host":"s3://npm-registry-packages"}},"1.3.6":{"name":"marked-code-preview","version":"1.3.6","keywords":["marked","marked-extension","code","codefence","markdown","html","preview","snippet","template","stilearning-marked-extensions"],"author":{"url":"https://stilearning.com","name":"Beni Arisandi"},"license":"MIT","_id":"marked-code-preview@1.3.6","maintainers":[{"name":"bent10","email":"bent10@stilearning.com"}],"homepage":"https://github.com/bent10/marked-extensions/tree/main/packages/code-preview","bugs":{"url":"https://github.com/bent10/marked-extensions/issues"},"dist":{"shasum":"d7397a662db056089a1f154dabf8b1144b5cbd10","tarball":"https://registry.npmjs.org/marked-code-preview/-/marked-code-preview-1.3.6.tgz","fileCount":11,"integrity":"sha512-yEDK0edqDYl1Q8viq3ntp7zBgzHJfJFKIt4d/9boTctEMXfPROzYs3h10ApU9sPljiE8Dm4r19a80Dy/9n/mfQ==","signatures":[{"sig":"MEUCIEQHpLP5hRS9yzRuK0lnIsCXjG+NFDVbWbpJSekHqcUmAiEAzcK2w0C9AAlT359sW1QqKe3pfyWFstHQvk/fxvN46xA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22701},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","browser":"./dist/index.umd.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"52251fef3dd10e06f415ccd26b15e2f687a5f98c","scripts":{"dev":"vite build --watch","lint":"tsc --noEmit && eslint . --cache --cache-location ../../node_modules/.eslint","test":"vitest","build":"vite build && npm run types","start":"vite","types":"tsc -d --emitDeclarationOnly --outDir ./dist","format":"prettier . --write --cache-location ../../node_modules/.prettier --ignore-path ../../.prettierignore","coverage":"vitest run --coverage"},"_npmUser":{"name":"bent10","email":"bent10@stilearning.com"},"repository":{"url":"git+https://github.com/bent10/marked-extensions.git","type":"git"},"_npmVersion":"10.4.0","description":"A Marked extension for transforming code blocks into code previews","directories":{},"_nodeVersion":"20.8.1","dependencies":{"attributes-parser":"^2.2.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"marked":">=7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/marked-code-preview_1.3.6_1706930133484_0.2442129427913995","host":"s3://npm-registry-packages"}},"1.3.7":{"name":"marked-code-preview","description":"A Marked extension for transforming code blocks into code previews","version":"1.3.7","publishConfig":{"access":"public"},"author":{"name":"Beni Arisandi","url":"https://stilearning.com"},"repository":{"type":"git","url":"git+https://github.com/bent10/marked-extensions.git"},"homepage":"https://github.com/bent10/marked-extensions/tree/main/packages/code-preview","license":"MIT","keywords":["marked","marked-extension","code","codefence","markdown","html","preview","snippet","template","stilearning-marked-extensions"],"type":"module","main":"./dist/index.cjs","browser":"./dist/index.umd.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"import":"./dist/index.js","require":"./dist/index.cjs","types":"./dist/index.d.ts"}},"scripts":{"start":"vite","dev":"vite build --watch","build":"vite build && npm run types","test":"vitest","coverage":"vitest run --coverage","types":"tsc -d --emitDeclarationOnly --outDir ./dist","lint":"tsc --noEmit && eslint . --cache --cache-location ../../node_modules/.eslint","format":"prettier . --write --cache-location ../../node_modules/.prettier --ignore-path ../../.prettierignore"},"dependencies":{"attributes-parser":"^2.2.3"},"peerDependencies":{"marked":">=7.0.0"},"_id":"marked-code-preview@1.3.7","gitHead":"fa34d9814ad83c1a624a30d48cadf738de344eb3","bugs":{"url":"https://github.com/bent10/marked-extensions/issues"},"_nodeVersion":"20.17.0","_npmVersion":"10.8.3","dist":{"integrity":"sha512-2XvsOKwunF0gWnAC2S4LijxhuKtfb8TpCuAboMs/6W+4lpkI7LgFQjcivUsActxMQbLuaaxOGIp8XkJJF3QmTQ==","shasum":"169c28c6a146176f3fa28841f19563dcc5d45651","tarball":"https://registry.npmjs.org/marked-code-preview/-/marked-code-preview-1.3.7.tgz","fileCount":11,"unpackedSize":23205,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEoHY0xY3kvMk3UBkTykwnUO5wWPGrOfko93mmJ+hLzGAiAHOKK85uJe8daRe8rdX3o70oa6MAhX6RbtwDnOHw0Pzg=="}]},"_npmUser":{"name":"bent10","email":"bent10@stilearning.com"},"directories":{},"maintainers":[{"name":"bent10","email":"bent10@stilearning.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/marked-code-preview_1.3.7_1724896765996_0.2809326218457868"},"_hasShrinkwrap":false}},"time":{"created":"2023-09-26T10:50:24.547Z","modified":"2024-08-29T01:59:26.378Z","1.0.0":"2023-09-26T10:50:25.012Z","1.0.1":"2023-09-29T06:54:00.033Z","1.1.0":"2023-10-01T12:46:03.869Z","1.2.0":"2023-10-02T07:30:28.646Z","1.2.1":"2023-10-14T17:24:23.619Z","1.3.0":"2023-10-20T10:55:54.161Z","1.3.1":"2023-10-26T04:35:58.948Z","1.3.2":"2023-10-26T15:33:02.558Z","1.3.3":"2023-11-03T11:40:00.845Z","1.3.4":"2023-11-13T01:02:57.139Z","1.3.5":"2023-12-16T11:51:58.824Z","1.3.6":"2024-02-03T03:15:33.783Z","1.3.7":"2024-08-29T01:59:26.212Z"},"bugs":{"url":"https://github.com/bent10/marked-extensions/issues"},"author":{"name":"Beni Arisandi","url":"https://stilearning.com"},"license":"MIT","homepage":"https://github.com/bent10/marked-extensions/tree/main/packages/code-preview","keywords":["marked","marked-extension","code","codefence","markdown","html","preview","snippet","template","stilearning-marked-extensions"],"repository":{"type":"git","url":"git+https://github.com/bent10/marked-extensions.git"},"description":"A Marked extension for transforming code blocks into code previews","maintainers":[{"name":"bent10","email":"bent10@stilearning.com"}],"readme":"# marked-code-preview\n\nA [marked](https://marked.js.org/) extension to transform code blocks within Markdown documents into code previews. It allows you to generate visually appealing code previews for your code snippets within your Markdown content. You can customize the appearance and behavior of code previews using [templates and options](#options).\n\n## Install\n\nYou can install `marked-code-preview` using npm or yarn:\n\n```bash\nnpm i marked-code-preview\n# or\nyarn add marked-code-preview\n```\n\n## Usage\n\nTo use this extension in your Marked processing pipeline, you need to configure your marked processor with this extension. Here's an example of how to do it:\n\n### Browser\n\nSay we have the following file `example.html`:\n\n```html\n<!doctype html>\n<html>\n  <head>\n    <meta charset=\"utf-8\" />\n    <title>Marked code preview extension</title>\n  </head>\n  <body>\n    <div id=\"content\"></div>\n\n    <script src=\"https://cdn.jsdelivr.net/npm/marked/marked.min.js\"></script>\n    <script src=\"https://cdn.jsdelivr.net/npm/moo/moo.min.js\"></script>\n    <script src=\"https://cdn.jsdelivr.net/npm/json-loose/dist/index.umd.min.js\"></script>\n    <script src=\"https://cdn.jsdelivr.net/npm/attributes-parser/dist/index.umd.min.js\"></script>\n    <script src=\"https://cdn.jsdelivr.net/npm/marked-code-preview/dist/index.umd.min.js\"></script>\n    <script>\n      // 🚨 Important: The `preview` attribute must be specified in code fence blocks.\n      const md = `# Example\n\n\\`\\`\\`html preview title=\"Code title\"\n<div class='foo'>Hello, World!</div>\n\\`\\`\\`\n`\n\n      document.getElementById('content').innerHTML = new marked.Marked()\n        .use(markedCodePreview())\n        .parse(md)\n    </script>\n  </body>\n</html>\n```\n\n[![Try marked-code-preview on RunKit](https://badge.runkitcdn.com/example.html.svg)](https://untitled-dkvdhhd08twr.runkit.sh/)\n\n### Node.js\n\nSay we have the following file `example.md`:\n\n````md\n# Example\n\n```html preview title=\"Code title\"\n<div class=\"foo\">Hello, World!</div>\n```\n````\n\n**🚨 Important:** The `preview` attribute must be specified in code fence blocks.\n\nAnd our module `example.js` looks as follows:\n\n```js\nimport { readFileSync } from 'node:fs'\nimport { marked } from 'marked'\nimport markedCodePreview from 'marked-code-preview'\n\nconst html = marked\n  .use({ gfm: true })\n  .use(markedCodePreview)\n  .parse(readFileSync('example.md', 'utf8'))\n\nconsole.log(html)\n```\n\nNow, running `node example.js` yields:\n\n```html\n<h1>Example</h1>\n\n<figure class=\"preview\">\n  <figcaption>Code title</figcaption>\n  <div class=\"preview-showcase\">\n    <div class=\"foo\">Hello, World!</div>\n  </div>\n  <div class=\"preview-code\">\n    <pre><code class=\"language-html\">&lt;div class=&#39;foo&#39;&gt;Hello, World!&lt;/div&gt;\n</code></pre>\n  </div>\n</figure>\n```\n\n## Options\n\nThis extension accepts the following options:\n\n### `template?: string`\n\nThe code preview template to use. You can customize the preview layout using placeholders like `{preview}`, `{code}`, codefence meta data (e.g. `{title}`), and your custom [data](#data--key-string-unknown-).\n\nThe default template looks like this:\n\n```html\n<figure class=\"preview\">\n  <figcaption>{title}</figcaption>\n  <div class=\"preview-showcase\">{preview}</div>\n  <div class=\"preview-code\">{code}</div>\n</figure>\n```\n\nYou can customize the template according to your needs. For example:\n\n```js\nimport { readFileSync } from 'node:fs'\nimport { marked } from 'marked'\nimport markedCodePreview from 'marked-code-preview'\n\nconst customTemplate = `\n<figure>\n  <div class='preview-container'>\n    {preview}\n  </div>\n  <figcaption>{title}</figcaption>\n</figure>\n`\n\nconst html = marked\n  .use({ gfm: true })\n  .use(markedCodePreview({ template: customTemplate }))\n  .parse(readFileSync('example.md', 'utf8'))\n\nconsole.log(html)\n```\n\nYields:\n\n```html\n<h1>Example</h1>\n\n<figure>\n  <div class=\"preview-container\">\n    <div class=\"foo\">Hello, World!</div>\n  </div>\n  <figcaption>Code title</figcaption>\n</figure>\n```\n\n### `transformer?: Transformer`\n\nThe transformer function for modifying preview code before replacing the `{preview}` placeholder.\n\nDefault transformer:\n\n```js\n;(code, attrs, data) => code\n```\n\n## Related\n\n- [marked-code-format](https://github.com/bent10/marked-extensions/tree/main/packages/code-format)\n- [marked-code-jsx-renderer](https://github.com/bent10/marked-extensions/tree/main/packages/code-jsx-renderer)\n\n## Contributing\n\nWe 💛&nbsp; issues.\n\nWhen committing, please conform to [the semantic-release commit standards](https://www.conventionalcommits.org/). Please install `commitizen` and the adapter globally, if you have not already.\n\n```bash\nnpm i -g commitizen cz-conventional-changelog\n```\n\nNow you can use `git cz` or just `cz` instead of `git commit` when committing. You can also use `git-cz`, which is an alias for `cz`.\n\n```bash\ngit add . && git cz\n```\n\n## License\n\n![GitHub](https://img.shields.io/github/license/bent10/marked-extensions)\n\nA project by [Stilearning](https://stilearning.com) &copy; 2023-2024.\n","readmeFilename":"readme.md"}