UNPKG

prosemirror-highlight

Version:

A ProseMirror plugin to highlight code blocks

158 lines 3.84 kB
{ "name": "prosemirror-highlight", "type": "module", "version": "0.15.1", "description": "A ProseMirror plugin to highlight code blocks", "author": "ocavue <ocavue@gmail.com>", "license": "MIT", "funding": "https://github.com/sponsors/ocavue", "homepage": "https://github.com/ocavue/prosemirror-highlight#readme", "repository": { "type": "git", "url": "https://github.com/ocavue/prosemirror-highlight.git" }, "bugs": "https://github.com/ocavue/prosemirror-highlight/issues", "keywords": [ "prosemirror", "editor", "highlight.js", "shiki", "refractor", "lowlight", "prism", "lezer" ], "sideEffects": false, "main": "./dist/index.js", "module": "./dist/index.js", "types": "./dist/index.d.ts", "exports": { ".": { "types": "./dist/index.d.ts", "default": "./dist/index.js" }, "./lezer": { "types": "./dist/lezer.d.ts", "default": "./dist/lezer.js" }, "./lowlight": { "types": "./dist/lowlight.d.ts", "default": "./dist/lowlight.js" }, "./refractor": { "types": "./dist/refractor.d.ts", "default": "./dist/refractor.js" }, "./shiki": { "types": "./dist/shiki.d.ts", "default": "./dist/shiki.js" }, "./sugar-high": { "types": "./dist/sugar-high.d.ts", "default": "./dist/sugar-high.js" } }, "files": [ "dist" ], "peerDependencies": { "@lezer/common": "^1.0.0", "@lezer/highlight": "^1.0.0", "@shikijs/types": "^1.29.2 || ^2.0.0 || ^3.0.0 || ^4.0.0", "@types/hast": "^3.0.0", "highlight.js": "^11.9.0", "lowlight": "^3.1.0", "prosemirror-model": "^1.19.3", "prosemirror-state": "^1.4.3", "prosemirror-transform": "^1.8.0", "prosemirror-view": "^1.32.4", "refractor": "^5.0.0", "sugar-high": "^0.6.1 || ^0.7.0 || ^0.8.0 || ^0.9.0 || ^1.0.0" }, "peerDependenciesMeta": { "@lezer/common": { "optional": true }, "@lezer/highlight": { "optional": true }, "@shikijs/types": { "optional": true }, "@types/hast": { "optional": true }, "highlight.js": { "optional": true }, "lowlight": { "optional": true }, "prosemirror-model": { "optional": true }, "prosemirror-state": { "optional": true }, "prosemirror-transform": { "optional": true }, "prosemirror-view": { "optional": true }, "refractor": { "optional": true }, "sugar-high": { "optional": true } }, "devDependencies": { "@lezer/common": "^1.5.1", "@lezer/css": "^1.3.1", "@lezer/highlight": "^1.2.3", "@lezer/javascript": "^1.5.4", "@ocavue/eslint-config": "^4.2.0", "@ocavue/tsconfig": "^0.6.3", "@shikijs/types": "^4.0.0", "@types/hast": "^3.0.4", "@types/node": "^24.0.0", "diffable-html-snapshot": "^0.2.0", "eslint": "^10.0.2", "highlight.js": "^11.11.1", "jsdom": "^28.1.0", "lowlight": "^3.3.0", "pkg-pr-new": "^0.0.63", "prettier": "^3.8.1", "prosemirror-example-setup": "^1.2.3", "prosemirror-model": "^1.25.4", "prosemirror-schema-basic": "^1.2.4", "prosemirror-state": "^1.4.4", "prosemirror-transform": "^1.11.0", "prosemirror-view": "^1.41.6", "refractor": "^5.0.0", "shiki": "^4.0.0", "sugar-high": "^0.9.5", "tsdown": "^0.20.3", "typescript": "^5.9.3", "vite": "^7.3.1", "vitest": "^4.0.18" }, "scripts": { "dev": "vite", "build": "tsdown", "build:playground": "vite build", "lint": "eslint .", "fix": "eslint --fix . && prettier --write .", "test": "vitest", "typecheck": "tsc -b" }, "typesVersions": { "*": { "*": [ "./dist/*", "./dist/index.d.ts" ] } } }