rehype-prism-plus
Version:
rehype plugin to highlight code blocks in HTML with Prism (via refractor) with line highlighting and line numbers
115 lines (114 loc) • 2.73 kB
JSON
{
"name": "rehype-prism-plus",
"version": "2.0.2",
"description": "rehype plugin to highlight code blocks in HTML with Prism (via refractor) with line highlighting and line numbers",
"source": "index.js",
"files": [
"dist"
],
"main": "./dist/index.es.js",
"module": "./dist/index.es.js",
"types": "./dist/index.d.ts",
"type": "module",
"sideEffects": false,
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.es.js"
},
"./common": {
"types": "./dist/common.d.ts",
"default": "./dist/common.es.js"
},
"./all": {
"types": "./dist/all.d.ts",
"default": "./dist/all.es.js"
},
"./generator": {
"types": "./dist/generator.d.ts",
"default": "./dist/generator.es.js"
}
},
"typesVersions": {
"*": {
".": [
"./dist/index"
],
"common": [
"./dist/common"
],
"all": [
"./dist/all"
],
"generator": [
"./dist/generator"
]
}
},
"scripts": {
"build": "tsc -b && microbundle src/index.js src/common.js src/all.js src/generator.js --format esm",
"tsc": "tsc --watch",
"lint": "eslint .",
"prettier": "prettier --write '*.js'",
"test": "uvu"
},
"repository": {
"type": "git",
"url": "git+https://github.com/timlrx/rehype-prism-plus.git"
},
"keywords": [
"rehype",
"rehype-plugin",
"syntax-highlighting",
"prism",
"mdx",
"jsx"
],
"author": "Timothy Lin <timothy0336@hotmail.com> (https://timlrx.com)",
"license": "MIT",
"bugs": {
"url": "https://github.com/timlrx/rehype-prism-plus/issues"
},
"homepage": "https://github.com/timlrx/rehype-prism-plus#readme",
"dependencies": {
"hast-util-to-string": "^3.0.1",
"parse-numeric-range": "^1.3.0",
"refractor": "^5.0.0",
"rehype-parse": "^9.0.1",
"unist-util-filter": "^5.0.1",
"unist-util-visit": "^5.1.0"
},
"devDependencies": {
"dedent": "^1.7.1",
"eslint": "^10.0.0",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-node": "^11.1.0",
"husky": "^9.1.7",
"lint-staged": "^16.2.7",
"microbundle": "^0.15.1",
"prettier": "^3.8.1",
"rehype": "^13.0.2",
"remark": "^15.0.1",
"remark-rehype": "^11.1.2",
"typescript": "5.9.3",
"unified": "^11.0.5",
"uvu": "^0.5.6"
},
"prettier": {
"printWidth": 100,
"tabWidth": 2,
"useTabs": false,
"singleQuote": true,
"bracketSpacing": true,
"semi": false,
"trailingComma": "es5"
},
"lint-staged": {
"*.+(js|jsx|ts|tsx)": [
"eslint --fix"
],
"*.+(js|jsx|ts|tsx|json|css|md|mdx)": [
"prettier --write"
]
}
}