UNPKG

rehype-prism-template

Version:

rehype plugin to highlight code blocks in HTML with Prism

72 lines (71 loc) 1.76 kB
{ "name": "rehype-prism-template", "version": "0.4.1", "description": "rehype plugin to highlight code blocks in HTML with Prism", "main": "index.js", "scripts": { "precommit": "lint-staged", "lint": "eslint index.js src/languages.js src/parse.js", "format": "prettier --single-quote --write index.js src/parse.js src/languages.js", "test-jest": "jest", "pretest": "npm run lint", "test": "jest", "register": "node src/parse.js", "register-all": "node src/parse.js all" }, "repository": { "type": "git", "url": "git+https://github.com/iamskok/rehype-prism-template.git" }, "keywords": [ "rehype", "rehype-plugin", "syntax-highlighting", "prism", "template-generator" ], "author": "Mapbox", "contributors": [ "Vladimir Skok <skok@vova.io> (https://github.com/iamskok/)" ], "license": "MIT", "bugs": { "url": "https://github.com/iamskok/rehype-prism-template/issues" }, "homepage": "https://github.com/iamskok/rehype-prism-template#readme", "dependencies": { "hast-util-to-string": "^1.0.0", "refractor": "^2.6.2", "underscore": "^1.9.1", "unist-util-visit": "^1.1.3" }, "devDependencies": { "dedent": "^0.7.0", "eslint": "^5.13.0", "eslint-plugin-node": "^5.0.0", "husky": "^0.13.4", "jest": "^24.0.0", "lint-staged": "^4.0.0", "prettier": "^1.4.4", "rehype": "^5.0.0" }, "lint-staged": { "index.js src/parse.js src/languages.js": [ "prettier --single-quote --write", "git add" ] }, "jest": { "coverageReporters": [ "json", "lcov", "text", "html" ], "resetMocks": true, "testRegex": "/test\\.js$" }, "engines": { "node": ">=8" } }