{"_id":"@danpalmer/gatsby-remark-embed-gist","_rev":"2-bf7b6013c5bac512ac928f918db3e875","name":"@danpalmer/gatsby-remark-embed-gist","dist-tags":{"latest":"1.1.3"},"versions":{"1.1.2":{"license":"MIT","version":"1.1.2","name":"@danpalmer/gatsby-remark-embed-gist","description":"Gatsby remark gists preprocessor fork for https://github.com/weirdpattern/gatsby-remark-embed-gist/pull/1","author":{"name":"Patricio Trevino","email":"patricio@weirdpattern.com"},"repository":{"type":"git","url":"git+https://github.com/weirdpattern/gatsby-remark-embed-gist.git"},"bugs":{"url":"https://github.com/weirdpattern/gatsby-remark-embed-gist/issues"},"main":"index.js","keywords":["gatsby","gatsbyjs","gatsby-plugin","gatsby-remark","remark","gist","embedded","plugin"],"scripts":{"build":"BABEL_ENV=production babel src --out-dir .","clean":"rimraf node_modules","format":"prettier --write ./{src,specs}/{,**}/*.js","lint":"eslint ./{src,specs}/{,**}/*.js","precommit":"lint-staged && npm test","test":"jest","test:verbose":"jest --verbose","test:coverage":"jest --coverage --runInBand --no-cache","release":"yarn run clean && yarn install && yarn run build && standard-version"},"devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.3","babel-eslint":"^8.2.6","babel-plugin-add-module-exports":"^0.2.1","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-env":"^1.7.0","babel-preset-react":"^6.24.1","eslint":"^5.1.0","eslint-config-prettier":"^2.9.0","eslint-plugin-jest":"^21.18.0","eslint-plugin-json":"^1.2.0","eslint-plugin-filenames":"^1.3.2","eslint-plugin-prettier":"^2.6.2","husky":"^0.14.3","jest":"^23.4.1","lint-staged":"^7.2.0","prettier":"^1.13.7","react":"^16.4.1","remark":"^9.0.0","rimraf":"^2.6.2","standard-version":"^4.4.0"},"dependencies":{"async-unist-util-visit":"^1.0.0","babel-plugin-transform-runtime":"^6.23.0","cheerio":"^1.0.0-rc.2","parse-numeric-range":"^0.0.2","request":"^2.87.0","request-promise":"^4.2.2"},"peerDependencies":{"gatsby":"*","gatsby-transformer-remark":"*","react":"*"},"babel":{"presets":[["env",{"targets":{"browsers":["last 4 versions","safari >= 7","ie >= 9"],"uglify":true}}],"react"],"plugins":["add-module-exports","transform-runtime","transform-object-rest-spread"]},"eslintConfig":{"parser":"babel-eslint","parserOptions":{"sourceType":"module"},"extends":["eslint:recommended","prettier"],"plugins":["jest","json","prettier","filenames"],"env":{"es6":true,"node":true,"jest":true},"rules":{"semi":"error","no-undef":"off","no-unused-vars":"off","no-dupe-class-members":"off","require-jsdoc":"error","valid-jsdoc":["error",{"preferType":{"any":"*","Boolean":"boolean","Number":"number","Object":"object","String":"string","return":"returns"},"requireReturnType":true,"requireParamDescription":true,"requireReturnDescription":true}],"quotes":["error","double",{"avoidEscape":true}],"no-console":"off","filenames/no-index":"off","filenames/match-exported":["error",[null,"kebab","camel"]],"jest/no-disabled-tests":"error","jest/no-focused-tests":"error","jest/no-identical-title":"error","jest/valid-expect":"error","prettier/prettier":"error"}},"lint-staged":{"*.js{,x}":["prettier --write","git add"]},"jest":{"moduleFileExtensions":["js","jsx","ts","tsx"],"testMatch":["**/specs/**/*[.-][Ss]pec{,s}.{j,t}s{,x}"],"rootDir":".","verbose":false,"resetMocks":true,"resetModules":true,"collectCoverageFrom":["src/*.{j,t}s{,x}","!**/*.min.js","!**/static/**","!**/specs/**","!**/node_modules/**"]},"homepage":"https://github.com/weirdpattern/gatsby-remark-embed-gist#readme","_id":"@danpalmer/gatsby-remark-embed-gist@1.1.2","_npmVersion":"6.4.0","_nodeVersion":"8.11.3","_npmUser":{"name":"danpalmer","email":"dan.palmer@me.com"},"dist":{"integrity":"sha512-mxWodwOHKkwPL8q3+YYyeKYdhzG07qqhUzxI8oRXXEywqTpD9YwGU58fPNdeeD5pN48LDM0lTxT7+Au7VlTvYQ==","shasum":"ca63cad082fba6a919b899f748eaea1a166d2952","tarball":"https://registry.npmjs.org/@danpalmer/gatsby-remark-embed-gist/-/gatsby-remark-embed-gist-1.1.2.tgz","fileCount":8,"unpackedSize":10885,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbpjGOCRA9TVsSAnZWagAAxBoP/A2iumyfGmZCoFarzFZZ\n9QEnencRdZHSkM0u4CG7CqlkjzV0xeu3zDFhcccMkuv7chHLyZ8yOCV0G/7Z\nWtzj6NHVVfE7RqlQ1E14GAJuI1wtd6jRnIkY+WJwrOP5xgzUL2CuttDp8q6O\npgm1y3DkqAxym9ORCX0ro6khioefULoDAtWczO8es+d/vGKZGxxo2yj4bLo0\nwXSGJStqJ5k9U0Y4Sm1cHkv1jsJIggYnOxRxNKrU1u4gaeuLL6HvWfz5Puui\nEaTVd6UIizX92hNq8pCwJB/L5vLv0wKFQue8HJ0jt/DRzHBQv5jpl608mZrh\nzVdT0fIHM8qHqR3cA+hslLOIjpuSfKc+AD1EacN4mCjFw+aka8mCFY6W2Dmg\nP2+L3sl/VmXAwC97ovt3HgXzhawszPRF8c9SFl7n5XltQWejKIgJskK/VhOT\nMmc6MifmAgu2DXqpmCVxtFr8ceCM7kmQ50mI9N+SncgoeiNCgKcs2EM3Ot0P\njGG/RygBbTajWdoCGYTrxcqNtcR8Kfh5DVp5iwiLWRvYIDzb2dsD+45O3wPQ\niKSyD3Xv+bGQU3L79IVoDGU1OlCZ0zVfTH0ZdtkHUYcLhaSYiS0IzG6fquRV\nzSpNdcAdvKForgxbiJ1Y04b0+kD5YrPryccsuofLTZriR2wqgRBL3EBB623h\nWU0I\r\n=4vba\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAuo0/MSyMQnD4wv97NTc1IcYtoFIvW5gA53Staep5QmAiEAyoysrZ6eVpfEYvAwfYvjT4StPq4xLr43rVyL+Vj2AOs="}]},"maintainers":[{"name":"danpalmer","email":"dan.palmer@me.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gatsby-remark-embed-gist_1.1.2_1537618317550_0.4692084028446557"},"_hasShrinkwrap":false},"1.1.3":{"license":"MIT","version":"1.1.3","name":"@danpalmer/gatsby-remark-embed-gist","description":"Gatsby remark gists preprocessor fork for https://github.com/weirdpattern/gatsby-remark-embed-gist/pull/1","author":{"name":"Patricio Trevino","email":"patricio@weirdpattern.com"},"repository":{"type":"git","url":"git+https://github.com/weirdpattern/gatsby-remark-embed-gist.git"},"bugs":{"url":"https://github.com/weirdpattern/gatsby-remark-embed-gist/issues"},"main":"index.js","keywords":["gatsby","gatsbyjs","gatsby-plugin","gatsby-remark","remark","gist","embedded","plugin"],"scripts":{"build":"BABEL_ENV=production babel src --out-dir .","clean":"rimraf node_modules","format":"prettier --write ./{src,specs}/{,**}/*.js","lint":"eslint ./{src,specs}/{,**}/*.js","precommit":"lint-staged && npm test","test":"jest","test:verbose":"jest --verbose","test:coverage":"jest --coverage --runInBand --no-cache","release":"yarn run clean && yarn install && yarn run build && standard-version"},"devDependencies":{"babel-cli":"^6.26.0","babel-core":"^6.26.3","babel-eslint":"^8.2.6","babel-plugin-add-module-exports":"^0.2.1","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-env":"^1.7.0","babel-preset-react":"^6.24.1","eslint":"^5.1.0","eslint-config-prettier":"^2.9.0","eslint-plugin-jest":"^21.18.0","eslint-plugin-json":"^1.2.0","eslint-plugin-filenames":"^1.3.2","eslint-plugin-prettier":"^2.6.2","husky":"^0.14.3","jest":"^23.4.1","lint-staged":"^7.2.0","prettier":"^1.13.7","react":"^16.4.1","remark":"^9.0.0","rimraf":"^2.6.2","standard-version":"^4.4.0"},"dependencies":{"async-unist-util-visit":"^1.0.0","babel-plugin-transform-runtime":"^6.23.0","cheerio":"^1.0.0-rc.2","parse-numeric-range":"^0.0.2","request":"^2.87.0","request-promise":"^4.2.2"},"peerDependencies":{"gatsby":"*","gatsby-transformer-remark":"*","react":"*"},"babel":{"presets":[["env",{"targets":{"browsers":["last 4 versions","safari >= 7","ie >= 9"],"uglify":true}}],"react"],"plugins":["add-module-exports","transform-runtime","transform-object-rest-spread"]},"eslintConfig":{"parser":"babel-eslint","parserOptions":{"sourceType":"module"},"extends":["eslint:recommended","prettier"],"plugins":["jest","json","prettier","filenames"],"env":{"es6":true,"node":true,"jest":true},"rules":{"semi":"error","no-undef":"off","no-unused-vars":"off","no-dupe-class-members":"off","require-jsdoc":"error","valid-jsdoc":["error",{"preferType":{"any":"*","Boolean":"boolean","Number":"number","Object":"object","String":"string","return":"returns"},"requireReturnType":true,"requireParamDescription":true,"requireReturnDescription":true}],"quotes":["error","double",{"avoidEscape":true}],"no-console":"off","filenames/no-index":"off","filenames/match-exported":["error",[null,"kebab","camel"]],"jest/no-disabled-tests":"error","jest/no-focused-tests":"error","jest/no-identical-title":"error","jest/valid-expect":"error","prettier/prettier":"error"}},"lint-staged":{"*.js{,x}":["prettier --write","git add"]},"jest":{"moduleFileExtensions":["js","jsx","ts","tsx"],"testMatch":["**/specs/**/*[.-][Ss]pec{,s}.{j,t}s{,x}"],"rootDir":".","verbose":false,"resetMocks":true,"resetModules":true,"collectCoverageFrom":["src/*.{j,t}s{,x}","!**/*.min.js","!**/static/**","!**/specs/**","!**/node_modules/**"]},"homepage":"https://github.com/weirdpattern/gatsby-remark-embed-gist#readme","_id":"@danpalmer/gatsby-remark-embed-gist@1.1.3","_npmVersion":"6.4.0","_nodeVersion":"8.11.3","_npmUser":{"name":"danpalmer","email":"dan.palmer@me.com"},"dist":{"integrity":"sha512-NjOYQl9u3BpF4UE29RqQM9jUW5nV44Wp1/t9p5nYtFAH/2s85cuePGLSnFiEm19gEOhsy0CBOKywZnQOaFNtZw==","shasum":"e041bd17a68c3a30f75e77cd5e5b59685b105301","tarball":"https://registry.npmjs.org/@danpalmer/gatsby-remark-embed-gist/-/gatsby-remark-embed-gist-1.1.3.tgz","fileCount":10,"unpackedSize":19664,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbpjL7CRA9TVsSAnZWagAAxYQP/1s09xAw1/xvu+fY1GA9\ncGvIKP6dQNwODxW2mTELmpvOtrrRD36lDODJcvC5S06LkTzft1pwDZEPn9FC\nhZrtrpeWL83ZwHTBDlQEj2R5MzxqptTazqk9wk5n/UXyK2NGjDF4O1KAIDl+\nD5ZYfjPocavrMDU9lbAjVH448YRA5/uZNaTawhMvl9o4ZFk1tGf/s9C+wBMF\n+RuPbBf/4iBsxuyMYxgtHKkzFg4xE8+EFvyYtQhDbkMuA2zsb/DqogzQRXQt\n6cKErgIPsK2WeJ+x0BOX6afkjJ6bdt7c9Re8ipFmHbuxUhY41SWzTN6coVmm\ngpizTdauD2gJL1vzXGx8yQ4VKEM/zCw78zagvYXUSbY5wevB1WPwuA+iZbRA\npzfSXJF5/gyTUtdPeTw9MviQeDsFA1ytBSCDtmt7aU7x+9EDXYQgOCBk7CGm\nh2hrd37smSC4k178BYggVJmUNFzHS/y+V5nMWI44LRGb34nt7dwrEbygYbzJ\nfAkqN7fwt7PqGxJDpLnDh4BMpy4ha5msrOhdwNvmwGHmicfj61aBl+v6yDJY\nJJnQKPQZxl+KChnSI/yCshnMlL6XNmJGcPHgrQkiRhz9HDXkbAUJ5qdmE2Pd\ncLQmtbNy6F/FcmpZjp9WvZrSjsdHVD4CYSW93wjywbAnjaGakvgNz44ATmcy\nH230\r\n=pKxM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCw1zoPBZaj5eENJbh/Z0IxOmRi+4xB+29B3MPUP5qGMQIhALAC6uWBBqdYl0UVtB7gumlbLispgsXVabScXG5jJZvv"}]},"maintainers":[{"name":"danpalmer","email":"dan.palmer@me.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gatsby-remark-embed-gist_1.1.3_1537618683270_0.5885424511363997"},"_hasShrinkwrap":false}},"time":{"created":"2018-09-22T12:11:57.380Z","1.1.2":"2018-09-22T12:11:57.673Z","modified":"2022-04-05T02:42:26.596Z","1.1.3":"2018-09-22T12:18:03.431Z"},"maintainers":[{"name":"danpalmer","email":"dan.palmer@me.com"}],"description":"Gatsby remark gists preprocessor fork for https://github.com/weirdpattern/gatsby-remark-embed-gist/pull/1","homepage":"https://github.com/weirdpattern/gatsby-remark-embed-gist#readme","keywords":["gatsby","gatsbyjs","gatsby-plugin","gatsby-remark","remark","gist","embedded","plugin"],"repository":{"type":"git","url":"git+https://github.com/weirdpattern/gatsby-remark-embed-gist.git"},"author":{"name":"Patricio Trevino","email":"patricio@weirdpattern.com"},"bugs":{"url":"https://github.com/weirdpattern/gatsby-remark-embed-gist/issues"},"license":"MIT","readme":"# gatsby-remark-embed-gist\n\n[![NPM badge](https://img.shields.io/npm/v/gatsby-remark-embed-gist.svg?style=flat-square)](https://www.npmjs.com/package/gatsby-remark-embed-gist)\n[![Travis badge](https://img.shields.io/travis/weirdpattern/gatsby-remark-embed-gist.svg?branch=master&style=flat-square)](https://travis-ci.org/weirdpattern/gatsby-remark-embed-gist)\n[![codecov](https://codecov.io/gh/weirdpattern/gatsby-remark-embed-gist/branch/master/graph/badge.svg)](https://codecov.io/gh/weirdpattern/gatsby-remark-embed-gist)\n\nThis plugin allows content authors to embed [Gist](https://gist.github.com/) \nsnippets.\n\n## Getting started\n\nTo embed a Gist snippet in you markdown/remark content, simply add an inline code \nblock using the `gist:` protocol.\n\n```md\n`gist:[<username>/]<gist_id>[#<gist_file>]`\n\nor \n\n`gist:[<username>/]<gist_id>[?file=<gist_file>&highlights=<number|ranges>]`\n```\n\nWhere:  \n- **username**, represents the github handler whose gist is to be accessed.  \nCan be defaulted via configuration.\n- **gist_id**, is the id of the gist to be accessed.   \nThis is the hash value in the gist url, e.g. https://gist.github.com/<username\\>/`ce54fdb1e5621b5966e146026995b974`).\n- **gist_file**, is the name of the file in the gist to be accessed.  \n\nHighlights can be defined using:\n- A single number (e.g. `highlights=1`)\n- A list of numbers (e.g. `highlights=1,4`) \n- A range of numbers (e.g. `highlights=1-4`)\n- A combination of all above (e.g. `highlights=1,3,7-9`)  \n\n## Installation\n\n`yarn add gatsby-remark-embed-gist`\n\n## Usage\n\n```javascript\n// In your gatsby-config.js\n{\n  resolve: \"gatsby-transformer-remark\",\n  options: {\n    plugins: [\n      {\n        resolve: \"gatsby-remark-embed-gist\",\n        options: {\n          // Optional:\n\n          // the github handler whose gists are to be accessed\n          username: 'weirdpattern',\n\n          // a flag indicating whether the github default gist css should be included or not\n          // default: true\n          includeDefaultCss: true\n        }\n      }\n    ]\n  }\n}\n```\n\n## Example\n\nTurns this...  \n```md\n`gist:weirdpattern/ce54fdb1e5621b5966e146026995b974#syntax.text`\n```\n\nInto this...  \n```html\n<div id=\"gist90436059\" class=\"gist\">\n    <div class=\"gist-file\">\n      <div class=\"gist-data\">\n        <div class=\"js-gist-file-update-container js-task-list-container file-box\">\n          <div id=\"file-syntax-text\" class=\"file\">\n            <div itemprop=\"text\" class=\"blob-wrapper data type-text\">\n              <table class=\"highlight tab-size js-file-line-container\" data-tab-size=\"8\">\n                <tbody>\n                  <tr>\n                    <td id=\"file-syntax-text-L1\" class=\"blob-num js-line-number\" data-line-number=\"1\"></td>\n                    <td id=\"file-syntax-text-LC1\" class=\"blob-code blob-code-inner js-file-line\">&lt;operation&gt; [n]&gt; /dev/null [options]</td>\n                  </tr>\n                </tbody>\n              </table>\n            </div>\n          </div>\n        </div>\n      </div>\n      <div class=\"gist-meta\">\n        <a href=\"https://gist.github.com/weirdpattern/ce54fdb1e5621b5966e146026995b974/raw/30a0ad953a8d79c8bcbdd76343d86a9e4bbda311/syntax.text\" style=\"float:right\">view raw</a>\n        <a href=\"https://gist.github.com/weirdpattern/ce54fdb1e5621b5966e146026995b974#file-syntax-text\">syntax.text</a>\n        hosted with ❤ by <a href=\"https://github.com\">GitHub</a>\n      </div>\n    </div>\n</div>\n```\n\n## Notes\n\nThe order of the plugins only matters when used in conjunction with \n`gatsby-remark-prismjs`, because this plugin transforms the inline code blocks, \nso add `gatsby-remark-embed-gist` somewhere above this plugin.  \n\n## License\n\nMIT, by Patricio Trevino\n","readmeFilename":"README.md"}