prosemirror-highlight 0.11.0 → 0.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/lowlight.d.ts +1 -1
- package/dist/refractor.d.ts +1 -1
- package/dist/shiki.d.ts +1 -1
- package/dist/sugar-high.d.ts +1 -1
- package/dist/{types-D9kxOI8-.d.ts → types-CwiCqY6X.d.ts} +3 -2
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -103,7 +103,7 @@ export const lowlightPlugin = createHighlightPlugin({ parser })
|
|
|
103
103
|
<summary>Static loading of all languages</summary>
|
|
104
104
|
|
|
105
105
|
```ts
|
|
106
|
-
import { refractor } from 'refractor'
|
|
106
|
+
import { refractor } from 'refractor/lib/all'
|
|
107
107
|
|
|
108
108
|
import { createHighlightPlugin } from 'prosemirror-highlight'
|
|
109
109
|
import { createParser } from 'prosemirror-highlight/refractor'
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Node } from 'prosemirror-model';
|
|
2
2
|
import { Transaction, Plugin } from 'prosemirror-state';
|
|
3
3
|
import { Decoration, DecorationSet } from 'prosemirror-view';
|
|
4
|
-
import { P as Parser, L as LanguageExtractor } from './types-
|
|
4
|
+
import { P as Parser, L as LanguageExtractor } from './types-CwiCqY6X.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Represents a cache of doc positions to the node and decorations at that position
|
package/dist/lowlight.d.ts
CHANGED
package/dist/refractor.d.ts
CHANGED
package/dist/shiki.d.ts
CHANGED
package/dist/sugar-high.d.ts
CHANGED
|
@@ -3,8 +3,9 @@ import { Decoration } from 'prosemirror-view';
|
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* A function that parses the text content of a code block node and returns an
|
|
6
|
-
* array of decorations. If the underlying syntax highlighter is
|
|
7
|
-
* you can return a promise that will be resolved when the
|
|
6
|
+
* array of ProseMirror decorations. If the underlying syntax highlighter is
|
|
7
|
+
* still loading, you can return a promise that will be resolved when the
|
|
8
|
+
* highlighter is ready.
|
|
8
9
|
*/
|
|
9
10
|
type Parser = (options: {
|
|
10
11
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "prosemirror-highlight",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.11.
|
|
4
|
+
"version": "0.11.1",
|
|
5
5
|
"description": "A ProseMirror plugin to highlight code blocks",
|
|
6
6
|
"author": "ocavue <ocavue@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
"prosemirror-transform": "^1.8.0",
|
|
60
60
|
"prosemirror-view": "^1.32.4",
|
|
61
61
|
"refractor": "^4.8.1",
|
|
62
|
-
"shiki": "^1.9.0",
|
|
63
|
-
"sugar-high": "^0.6.1"
|
|
62
|
+
"shiki": "^1.9.0 || ^2.0.0",
|
|
63
|
+
"sugar-high": "^0.6.1 || ^0.7.0 || ^0.8.0"
|
|
64
64
|
},
|
|
65
65
|
"peerDependenciesMeta": {
|
|
66
66
|
"@types/hast": {
|
|
@@ -111,11 +111,11 @@
|
|
|
111
111
|
"prosemirror-transform": "^1.10.2",
|
|
112
112
|
"prosemirror-view": "^1.37.0",
|
|
113
113
|
"refractor": "^4.8.1",
|
|
114
|
-
"shiki": "^
|
|
115
|
-
"sugar-high": "^0.
|
|
114
|
+
"shiki": "^2.0.0",
|
|
115
|
+
"sugar-high": "^0.8.2",
|
|
116
116
|
"tsup": "^8.3.5",
|
|
117
117
|
"typescript": "^5.6.3",
|
|
118
|
-
"vite": "^
|
|
118
|
+
"vite": "^6.0.5",
|
|
119
119
|
"vitest": "^2.1.8"
|
|
120
120
|
},
|
|
121
121
|
"renovate": {
|