{"_id":"@arkpad/extension-highlight","_rev":"2-0cf9ba16de4733f3955c4917b8feb9c1","name":"@arkpad/extension-highlight","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.1":{"name":"@arkpad/extension-highlight","version":"1.0.1","_id":"@arkpad/extension-highlight@1.0.1","maintainers":[{"name":"vartik","email":"mailvartik@gmail.com"}],"dist":{"shasum":"23e25b3402b69a5b101433ced2d87502bb7404b7","tarball":"https://registry.npmjs.org/@arkpad/extension-highlight/-/extension-highlight-1.0.1.tgz","fileCount":5,"integrity":"sha512-zoqNtxes1vv73ZXPGfYXPUYLQK/sgNf1YfcjqQ+hsyieeMqkxQgUhWZp0N7suVObL7HbQWMsDZva9mNJBcI7jg==","signatures":[{"sig":"MEQCIDaYTfOuMqQYoy391obVOANQeu2fpqqSZPjdXv+t0vQxAiA8sqYhMRnQG7x51d8IV+XA9K+WdxAsrFhPwjmQ6XEPrQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5579},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"gitHead":"8da55cf4a1a0dce25f8ed0564a8b76e6744a95b6","scripts":{"test":"vitest run","build":"tsc -p tsconfig.json","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"vartik","email":"mailvartik@gmail.com"},"_npmVersion":"11.11.0","description":"The Highlight extension allows you to mark text with a background color, similar to a physical highlighter.","directories":{},"_nodeVersion":"24.14.1","_hasShrinkwrap":false,"devDependencies":{"jsdom":"^29.1.1","vitest":"^4.1.6","prosemirror-model":"*"},"peerDependencies":{"@arkpad/core":"*"},"_npmOperationalInternal":{"tmp":"tmp/extension-highlight_1.0.1_1779243041769_0.2082051157174467","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@arkpad/extension-highlight","version":"1.0.2","type":"module","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"main":"./dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc -p tsconfig.json","typecheck":"tsc -p tsconfig.json --noEmit","test":"vitest run"},"peerDependencies":{"@arkpad/core":"*"},"module":"./dist/index.js","devDependencies":{"vitest":"^4.1.6","jsdom":"^29.1.1","prosemirror-model":"*"},"repository":{"type":"git","url":"git+https://github.com/arkcabin/arkpad.git","directory":"packages/extension-highlight"},"publishConfig":{"access":"public","provenance":true},"bugs":{"url":"https://github.com/arkcabin/arkpad/issues"},"homepage":"https://github.com/arkcabin/arkpad/tree/main/packages/extension-highlight#readme","gitHead":"cb6e50df44dca6b9c7a8c1a5ddc7ad18a39c9ea9","_id":"@arkpad/extension-highlight@1.0.2","description":"The Highlight extension allows you to mark text with a background color, similar to a physical highlighter.","_nodeVersion":"20.20.2","_npmVersion":"11.14.1","dist":{"integrity":"sha512-ofuAFZb218PTCNH+N65X/+LVvfoIQmXrOI9Jc3fFRZ4XhIT1sIT+l4UhgjmHWlou8nKSzyljJbLLMTvfQ/9YNA==","shasum":"cd48ce087c4f7510bd9f348c3402a14c28b1e433","tarball":"https://registry.npmjs.org/@arkpad/extension-highlight/-/extension-highlight-1.0.2.tgz","fileCount":5,"unpackedSize":5874,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@arkpad%2fextension-highlight@1.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIF+lzoHPNz3fdUaUaFvbyqn3VJr+V6oLR88z44hC3jWsAiBoaoJKAgW6Abg0OgaereVJGVJYry+rAjgl3nl98LKNbA=="}]},"_npmUser":{"name":"vartik","email":"mailvartik@gmail.com"},"directories":{},"maintainers":[{"name":"vartik","email":"mailvartik@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/extension-highlight_1.0.2_1779245344770_0.636374511795714"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-20T02:10:41.668Z","modified":"2026-05-20T02:49:05.215Z","1.0.1":"2026-05-20T02:10:41.919Z","1.0.2":"2026-05-20T02:49:04.924Z"},"description":"The Highlight extension allows you to mark text with a background color, similar to a physical highlighter.","maintainers":[{"name":"vartik","email":"mailvartik@gmail.com"}],"readme":"# @arkpad/extension-highlight\n\nThe Highlight extension allows you to mark text with a background color, similar to a physical highlighter.\n\n## Installation\n\n```bash\nnpm install @arkpad/extension-highlight\n```\n\n## Usage\n\n### Commands\n\n#### setHighlight(attributes)\n\nSets a highlight mark.\n\n```typescript\neditor.runCommand(\"setHighlight\", { color: \"#ffcc00\" });\n```\n\n#### toggleHighlight(attributes)\n\nToggles a highlight mark.\n\n```typescript\neditor.runCommand(\"toggleHighlight\");\n```\n\n#### unsetHighlight()\n\nRemoves all highlight marks.\n\n```typescript\neditor.runCommand(\"unsetHighlight\");\n```\n\n### Keyboard Shortcuts\n\n- `Mod-Shift-h`: Toggles highlight with default color.\n\n## Configuration\n\n### HTMLAttributes\n\nCustom HTML attributes for the rendered `mark` tag.\n\n```typescript\nHighlight.configure({\n  HTMLAttributes: {\n    class: \"my-custom-highlight\",\n  },\n});\n```\n\n### color\n\nThe default highlight color.\n\n```typescript\nHighlight.configure({\n  color: \"#ffcc00\",\n});\n```\n","readmeFilename":"README.md","homepage":"https://github.com/arkcabin/arkpad/tree/main/packages/extension-highlight#readme","repository":{"type":"git","url":"git+https://github.com/arkcabin/arkpad.git","directory":"packages/extension-highlight"},"bugs":{"url":"https://github.com/arkcabin/arkpad/issues"}}