tiptap-extension-code-block-shiki 0.4.0 → 0.5.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 +3 -3
- package/package.json +3 -3
package/README.md
CHANGED
@@ -49,17 +49,17 @@ Which language to use, when no language was provided. See https://shiki.style/la
|
|
49
49
|
|
50
50
|
### Lazy loading
|
51
51
|
|
52
|
-
The library loads themes and languages asynchronously. You may
|
52
|
+
The library loads themes and languages asynchronously. You may notice that the code is not highlighted for a short moment while the theme and language are loading.
|
53
53
|
|
54
54
|
### Unknown language fallback
|
55
55
|
|
56
|
-
|
56
|
+
If you use a language that Shiki doesn't support, it will silently switch to no syntax highlighting.
|
57
57
|
|
58
58
|
## [Contributing](CONTRIBUTING.md)
|
59
59
|
|
60
60
|
## Credits
|
61
61
|
|
62
|
-
Most of this library is just
|
62
|
+
Most of this library is just a combination of code from two other libraries:
|
63
63
|
|
64
64
|
- [`@tiptap/extension-code-block-lowlight`](https://github.com/ueberdosis/tiptap/tree/main/packages/extension-code-block-lowlight) by [Tiptap](https://tiptap.dev)
|
65
65
|
- [`prosemirror-highlight`](https://github.com/ocavue/prosemirror-highlight) by [ocavue](https://github.com/ocavue)
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "tiptap-extension-code-block-shiki",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.5.1",
|
4
4
|
"description": "Use Shiki syntax highlighting for codeblocks in TipTap.",
|
5
5
|
"repository": "timomeh/tiptap-extension-code-block-shiki",
|
6
6
|
"author": {
|
@@ -21,7 +21,7 @@
|
|
21
21
|
"@tiptap/starter-kit": "^2.3.0",
|
22
22
|
"happy-dom": "^14.10.1",
|
23
23
|
"prettier": "^3.2.5",
|
24
|
-
"shiki": "^
|
24
|
+
"shiki": "^3.0.0",
|
25
25
|
"typescript": "^5.2.2",
|
26
26
|
"vite": "^5.2.0",
|
27
27
|
"vite-plugin-dts": "^3.8.3",
|
@@ -31,7 +31,7 @@
|
|
31
31
|
"@tiptap/core": "^2.3.0",
|
32
32
|
"@tiptap/extension-code-block": "^2.3.0",
|
33
33
|
"@tiptap/pm": "^2.3.0",
|
34
|
-
"shiki": "^
|
34
|
+
"shiki": "^3.0.0"
|
35
35
|
},
|
36
36
|
"keywords": [
|
37
37
|
"tiptap",
|