tiptap-extension-code-block-shiki 0.3.0 → 0.5.0

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 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 see that the code is not highlighted for a short moment, while the theme and language is loading.
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
- When you use a language which isn't supported by Shiki, it silently falls back to no syntax highlighting.
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 combining code from two other libraries:
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.0",
3
+ "version": "0.5.0",
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": "^1.3.0",
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": "^1.3.0"
34
+ "shiki": "^3.0.0"
35
35
  },
36
36
  "keywords": [
37
37
  "tiptap",
@@ -1,15 +0,0 @@
1
- import { BundledLanguage } from 'shiki';
2
- import { BundledTheme } from 'shiki';
3
- import { CodeBlockOptions } from '@tiptap/extension-code-block';
4
- import { Node as Node_2 } from '@tiptap/core';
5
-
6
- declare const CodeBlockShiki: Node_2<CodeBlockShikiOptions, any>;
7
- export { CodeBlockShiki }
8
- export default CodeBlockShiki;
9
-
10
- export declare interface CodeBlockShikiOptions extends CodeBlockOptions {
11
- defaultLanguage: BundledLanguage | null | undefined;
12
- defaultTheme: BundledTheme;
13
- }
14
-
15
- export { }