Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

prosemirror-highlight

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prosemirror-highlight - npm Package Compare versions

Comparing version 0.0.1 to 0.1.0

73

package.json
{
"name": "prosemirror-highlight",
"type": "module",
"version": "0.0.1",
"version": "0.1.0",
"packageManager": "pnpm@8.10.0",

@@ -18,17 +18,14 @@ "description": "A ProseMirror plugin to highlight code blocks",

"sideEffects": false,
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"main": "./src/index.ts",
"module": "./src/index.ts",
"types": "./src/index.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
"default": "./src/index.ts"
},
"./lowlight": {
"types": "./dist/lowlight.d.ts",
"default": "./dist/lowlight.js"
"default": "./src/lowlight.ts"
},
"./shiki": {
"types": "./dist/shiki.d.ts",
"default": "./dist/shiki.js"
"default": "./src/shiki.ts"
}

@@ -39,2 +36,12 @@ },

],
"scripts": {
"dev": "vite",
"build": "tsup",
"lint": "eslint .",
"fix": "eslint --fix . && prettier --write .",
"prepublishOnly": "nr build",
"start": "esno src/index.ts",
"test": "vitest",
"typecheck": "tsc --noEmit"
},
"peerDependencies": {

@@ -90,2 +97,29 @@ "@types/hast": "^3.0.0",

},
"publishConfig": {
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"./lowlight": {
"types": "./dist/lowlight.d.ts",
"default": "./dist/lowlight.js"
},
"./shiki": {
"types": "./dist/shiki.d.ts",
"default": "./dist/shiki.js"
}
},
"typesVersions": {
"*": {
"*": [
"./dist/*",
"./dist/index.d.ts"
]
}
}
},
"renovate": {

@@ -95,20 +129,3 @@ "extends": [

]
},
"scripts": {
"dev": "vite",
"build": "tsup",
"lint": "eslint .",
"fix": "eslint --fix . && prettier --write .",
"start": "esno src/index.ts",
"test": "vitest",
"typecheck": "tsc --noEmit"
},
"typesVersions": {
"*": {
"*": [
"./dist/*",
"./dist/index.d.ts"
]
}
}
}
}

@@ -5,3 +5,3 @@ # prosemirror-highlight

Highlight your code blocks in ProseMirror, with any syntax highlighter you want.
Highlight your code blocks in [ProseMirror], with any syntax highlighter you want.

@@ -43,2 +43,6 @@ ## Usage

## Online demo
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/ocavue/prosemirror-highlight?file=playground%2Fmain.ts)
## Credits

@@ -52,2 +56,3 @@

[ProseMirror]: https://prosemirror.net
[prosemirror-highlightjs]: https://github.com/b-kelly/prosemirror-highlightjs

@@ -54,0 +59,0 @@ [lowlight]: https://github.com/wooorm/lowlight

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc