{"_id":"@trufflesuite/metalsmith-markdown-precompiler","_rev":"31-7cde3b24248d2c2ea9cfe8e0de949721","name":"@trufflesuite/metalsmith-markdown-precompiler","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@trufflesuite/metalsmith-markdown-precompiler","version":"1.0.0","keywords":["metalsmith","plugin","markdown","precompilation"],"author":{"name":"Bruno Scopelliti"},"license":"MIT","_id":"@trufflesuite/metalsmith-markdown-precompiler@1.0.0","maintainers":[{"name":"cds-amal","email":"cds.sudama@gmail.com"},{"name":"rkalis","email":"roscokalis@gmail.com"},{"name":"tcoulter","email":"tim@timothyjcoulter.com"},{"name":"gnidan","email":"nick@gnidan.org"},{"name":"davidmurdoch","email":"david@davidmurdoch.com"},{"name":"eggplantzzz","email":"pobol234@gmail.com"},{"name":"fainashalts","email":"fainashalts@gmail.com"},{"name":"haltman","email":"harry.j.altman@gmail.com"}],"homepage":"https://github.com/brunoscopelliti/metalsmith-markdown-precompiler#readme","bugs":{"url":"https://github.com/brunoscopelliti/metalsmith-markdown-precompiler/issues"},"dist":{"shasum":"4abf8492ae71e0901c03216f90ef4739c36cabd4","tarball":"https://registry.npmjs.org/@trufflesuite/metalsmith-markdown-precompiler/-/metalsmith-markdown-precompiler-1.0.0.tgz","fileCount":20,"integrity":"sha512-0SCIiJX00X2wyuCqOfUn8zNqrs0g7P6Jdwjs7MelVSLnUaczxfJh+coPMazxfsanvM4dTV76/EdmwkSAwc8c0w==","signatures":[{"sig":"MEUCIGNh7gzKv4rW14Y5MoUVJEUW7wSHUOsgWjYI0OepLaDJAiEAhfzPsVzKOAdf/yaMdlmT+vjJ6+V9QjcMHLMc5S8KCRU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16141,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgnBbrCRA9TVsSAnZWagAAtB4P/1TDI1EyGYvqYGoz9YZ8\nZW1gvCm+G2HWcT0u4V9eDb+9XLd6xW7QpgUHvWzWsN3yKaEIS31PhYut90Qp\nesfctZ7BfkhLV3TDRUBLrE7SJPZRbFuzF5QMXYPSesgEHm2u6tVxWJ6+X/R+\nubWNFID6OpPtOd3IMi5/e2r/uNOSl2RdmFgRO/3eeINxJCB3T2vtH/nl0nn5\nwEfMkJ0kJmxFZw9QZ0huZ41KgAZw6Z4FIPuFTVWGAGqikAw2TihFLLB7kthV\nyNWCQsU3QlP5xVzuf4T7UN/IbqPwTBp1joSgK7i4FiCXD20Lw9KnnkL8WM44\noPoihEuMGRjasSzMpU1OEq4yH39hRaQOdda8Jb9c9kxUFwghBUWrfse+Mn35\nuyPcLL+mBdXchCah/bobzKElElxdN/yo+tuxF8+lashfMijIMjGwj/E5wVqT\nEEBhb1aJUs08sFD3E1KyIGZrhs5Aeicm+urpaQ/8kguUCY/wUF7ty1282RzL\nv0QNakxjwhksepa7y0/uZOv4JeUSQGszfnuIwnlP8HMrWazFhsFqn4PT56Fe\nbUoH/rF6wfcD0dHhOf7K71aKEtcxMGpsVyfHYTf8czLPcAPs+DXS88bYwvdL\nZ24GYuZ/nHPQjPzaC6MDK8qrEjc0YiGCB7m11agg1C5N7MK+ruqSxPig2a7T\nhaaV\r\n=JlG2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","_from":"metalsmith-markdown-precompiler@1.0.0","_spec":"metalsmith-markdown-precompiler@1.0.0","_where":"/Users/tyler/projects/trufflesuite.com","_shasum":"de1c61d69eae5513ae8574723f22604c20f99656","engines":{"node":"5.0.0"},"scripts":{"test":"'./node_modules/.bin/tape' tests/index.js"},"_npmUser":{"name":"davidmurdoch","email":"david@davidmurdoch.com"},"_inBundle":false,"_location":"/metalsmith-markdown-precompiler","_resolved":"https://registry.npmjs.org/metalsmith-markdown-precompiler/-/metalsmith-markdown-precompiler-1.0.0.tgz","_integrity":"sha1-3hxh1p6uVROuhXRyPyJgTCD5llY=","_requested":{"raw":"metalsmith-markdown-precompiler@1.0.0","name":"metalsmith-markdown-precompiler","type":"version","rawSpec":"1.0.0","registry":true,"saveSpec":null,"fetchSpec":"1.0.0","escapedName":"metalsmith-markdown-precompiler"},"deprecated":false,"repository":{"url":"git+https://github.com/brunoscopelliti/metalsmith-markdown-precompiler.git","type":"git"},"_npmVersion":"6.14.12","_requiredBy":["#DEV:/"],"description":"A Metalsmith plugin that precompiles markdown files","directories":{},"_nodeVersion":"10.13.0","dependencies":{"handlebars":"^4.0.5"},"_hasShrinkwrap":false,"devDependencies":{"tape":"^4.4.0","sinon":"^1.17.2","tape-case":"^1.0.1","metalsmith":"^2.1.0","metalsmith-layouts":"^1.4.2","metalsmith-in-place":"^1.3.2","metalsmith-markdown":"^0.2.1","metalsmith-permalinks":"^0.4.1","metalsmith-collections":"^0.7.0"},"_phantomChildren":{},"_npmOperationalInternal":{"tmp":"tmp/metalsmith-markdown-precompiler_1.0.0_1620842218804_0.8435164738598386","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@trufflesuite/metalsmith-markdown-precompiler","version":"1.0.1","keywords":["metalsmith","plugin","markdown","precompilation"],"author":{"name":"Bruno Scopelliti"},"license":"MIT","_id":"@trufflesuite/metalsmith-markdown-precompiler@1.0.1","maintainers":[{"name":"cds-amal","email":"cds.sudama@gmail.com"},{"name":"rkalis","email":"roscokalis@gmail.com"},{"name":"tcoulter","email":"tim@timothyjcoulter.com"},{"name":"gnidan","email":"nick@gnidan.org"},{"name":"davidmurdoch","email":"david@davidmurdoch.com"},{"name":"eggplantzzz","email":"pobol234@gmail.com"},{"name":"fainashalts","email":"fainashalts@gmail.com"},{"name":"haltman","email":"harry.j.altman@gmail.com"}],"homepage":"https://github.com/brunoscopelliti/metalsmith-markdown-precompiler#readme","bugs":{"url":"https://github.com/brunoscopelliti/metalsmith-markdown-precompiler/issues"},"dist":{"shasum":"bb35bed97f7d1bffc1de7bf249ab0809652af737","tarball":"https://registry.npmjs.org/@trufflesuite/metalsmith-markdown-precompiler/-/metalsmith-markdown-precompiler-1.0.1.tgz","fileCount":20,"integrity":"sha512-QuX1WuyFQxPOMTYu2XPOKCKbutizu1zDoVjLF0AuFZ846NU7ZC/WFwVU7XQefEkOdRhiYpcLDvq9xGU5UV7cBA==","signatures":[{"sig":"MEUCIQDHI2v05oBv4AtFNpuzRy+1b7yVTcTZIn93XBHZ6yST6AIgOti8FeXr6JCw4x9GOltxBz/He7gSwb8TYe118kZ1en0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16335,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgnBxMCRA9TVsSAnZWagAAWpgP/iZCGakyPrW+D1zwjNcv\nnmUvvAmVcWcZSETA4j6aWB37ErDixRU+MI3UZugqpG/NnaaHchGWK3sBrBn1\nE0ixJPxhgDhcLxhe+NMoYTTxlGwRxObiTtqPM6evQTEqlOvGFoX6qdljUiw+\nHsZqLQfkG4Ds/TbcX/DA94R5TZBJDyEc3EXBTP+Xl/u+qQ3qpTluU/RiQHv3\nXAkLmCWWHH6ezHh5UdP4TzsFFqWl4F0eyL+EPtEPgdVe4lSLF8Jd2O7M3Y5k\nejLqzC8SSU643AVw/+ZZXIxsIaJgLzmNSG20P4mUnGHeR05OG5RJjE29x0ql\nEsBBTn+R4v2rBosScW1KkvV76nn5Wzkm27SBYR1LMEn9HqIMMVLpARPgh7+s\nauYZ0wYa2kU8JXGOTNO67bTktZKzhlAQy3c4vzvVUGVrjOGCZR4zDAAnzKb/\nV3Sp70+LtPR//YBFHTPg9MJ/Q0pWuJctG5mxvO9XI8u9TGlsaO/GtH9aePcd\nSdutjKOxytyoQulYTOrqgzKW9C0j1qsqsxChaxfwHV+ZFeN/UPMsu+wOqwAY\ns+alwsMm7A7NKHE8TZXJ2ZyIKmo0iucXuKI9w9ZgqFRiNSHHvRk58JcjJPEL\nod0BZdpdOc5XvkQezkhJVBi0Re2CrLx60SZ6cgN1i8YIYehe7Duqqyqt5tym\nK17G\r\n=tGuZ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","_from":"metalsmith-markdown-precompiler@1.0.0","_spec":"metalsmith-markdown-precompiler@1.0.0","_where":"/Users/tyler/projects/trufflesuite.com","_shasum":"de1c61d69eae5513ae8574723f22604c20f99656","engines":{"node":"5.0.0"},"scripts":{"test":"'./node_modules/.bin/tape' tests/index.js"},"_npmUser":{"name":"davidmurdoch","email":"david@davidmurdoch.com"},"_inBundle":false,"_location":"/metalsmith-markdown-precompiler","_resolved":"https://registry.npmjs.org/metalsmith-markdown-precompiler/-/metalsmith-markdown-precompiler-1.0.0.tgz","_integrity":"sha1-3hxh1p6uVROuhXRyPyJgTCD5llY=","_requested":{"raw":"metalsmith-markdown-precompiler@1.0.0","name":"metalsmith-markdown-precompiler","type":"version","rawSpec":"1.0.0","registry":true,"saveSpec":null,"fetchSpec":"1.0.0","escapedName":"metalsmith-markdown-precompiler"},"deprecated":false,"repository":{"url":"git+https://github.com/brunoscopelliti/metalsmith-markdown-precompiler.git","type":"git"},"_npmVersion":"6.14.12","_requiredBy":["#DEV:/"],"description":"A Metalsmith plugin that precompiles markdown files","directories":{},"_nodeVersion":"10.13.0","dependencies":{"handlebars":"^4.0.5"},"_hasShrinkwrap":false,"devDependencies":{"tape":"^4.4.0","sinon":"^1.17.2","metalsmith":"^2.1.0","metalsmith-layouts":"^1.4.2","metalsmith-in-place":"^1.3.2","metalsmith-markdown":"^1.3.0","metalsmith-permalinks":"^0.4.1","metalsmith-collections":"^0.9.0"},"_phantomChildren":{},"_npmOperationalInternal":{"tmp":"tmp/metalsmith-markdown-precompiler_1.0.1_1620843595722_0.7874528159355734","host":"s3://npm-registry-packages"}}},"time":{"created":"2021-05-12T17:56:58.606Z","modified":"2026-10-03T10:48:45.454Z","1.0.0":"2021-05-12T17:56:58.940Z","1.0.1":"2021-05-12T18:19:55.839Z"},"bugs":{"url":"https://github.com/brunoscopelliti/metalsmith-markdown-precompiler/issues"},"author":{"name":"Bruno Scopelliti"},"license":"MIT","homepage":"https://github.com/brunoscopelliti/metalsmith-markdown-precompiler#readme","keywords":["metalsmith","plugin","markdown","precompilation"],"repository":{"url":"git+https://github.com/brunoscopelliti/metalsmith-markdown-precompiler.git","type":"git"},"description":"A Metalsmith plugin that precompiles markdown files","maintainers":[{"email":"david@davidmurdoch.com","name":"davidmurdoch"},{"email":"it@consensys.net","name":"rizedr"}],"readme":"# metalsmith-markdown-precompiler\n\nA Metalsmith plugin that precompiles markdown files.\n\nYou might need to use a template in your markdown documents.\n\n```\n# example from sample/src/posts/post1.markdown\n\nHello world! This is a simple post I'm writing to share an image, and since I want that images look consistent on my blog, I am using a partial to define the markup.\n\n{{> figure src=\"kitten.jpg\" title=\"A kitten\"}}\n```\n\nThe problem here is that [marked](https://github.com/chjj/marked) (used by metalsmith-markdown) to parse the markdown, is not too happy when meet expressions like `{{> foo}}`:\n\n```\nError: Parse error on line 2:\n...e markup.</p><p>{{&gt; figure src=&quot\n----------------------^\nExpecting 'ID', 'STRING', 'NUMBER', 'BOOLEAN', 'UNDEFINED', 'NULL', 'DATA', got 'INVALID'\n```\n\nThe solution it's to use `metalsmith-markdown-precompiler` to precompile the markdown files replacing the partials with their effective content, before using metalsmith-markdown.\n\n## setup\n\n```\nnpm i -s metalsmith-markdown-precompiler\n```\n\n## demo\n\nTake a look at the file build-precompiled.js to have a demo of the correct usage.\nThe results are available under `sample/dist-precompiled` folder.\n\n## options\n\n`metalsmith-markdown-precompiler` accepts the following settings:\n\n```\nengine\n---\nThe engine to use to perform the precompilation.\nCurrently the only supported engine is handlebars.\n\npattern\n---\nDefine a pattern to filter the file on which the precompilation\nshould be executed.\nIt should be a regexp.\n\npartialsPath\n---\nThe path where the partial templates are located.\nIt should be relative to the path configured as \"source\" for metalsmith.\n\npartials\n---\nNames of the partial files which should be registered, and compiled.\nIt should be an array.\n```\n","readmeFilename":"README.md"}