@haklex/rich-renderer-katex 0.24.0 → 0.25.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 +13 -13
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -12,18 +12,18 @@ pnpm add @haklex/rich-renderer-katex
|
|
|
12
12
|
|
|
13
13
|
## Peer Dependencies
|
|
14
14
|
|
|
15
|
-
| Package
|
|
16
|
-
|
|
|
17
|
-
| `lexical`
|
|
18
|
-
| `@lexical/react` | `^0.
|
|
19
|
-
| `react`
|
|
20
|
-
| `react-dom`
|
|
21
|
-
| `katex`
|
|
15
|
+
| Package | Version |
|
|
16
|
+
| ---------------- | --------------------- |
|
|
17
|
+
| `lexical` | `^0.45.0` |
|
|
18
|
+
| `@lexical/react` | `^0.45.0` |
|
|
19
|
+
| `react` | `>=19` |
|
|
20
|
+
| `react-dom` | `>=19` |
|
|
21
|
+
| `katex` | `>=0.16.0` (optional) |
|
|
22
22
|
|
|
23
23
|
## Usage
|
|
24
24
|
|
|
25
25
|
```tsx
|
|
26
|
-
import { katexEditNodes } from '@haklex/rich-renderer-katex'
|
|
26
|
+
import { katexEditNodes } from '@haklex/rich-renderer-katex';
|
|
27
27
|
|
|
28
28
|
// Register edit nodes in your editor config
|
|
29
29
|
const editorConfig = {
|
|
@@ -31,7 +31,7 @@ const editorConfig = {
|
|
|
31
31
|
...katexEditNodes,
|
|
32
32
|
// ...other nodes
|
|
33
33
|
],
|
|
34
|
-
}
|
|
34
|
+
};
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
## Exports
|
|
@@ -45,10 +45,10 @@ const editorConfig = {
|
|
|
45
45
|
|
|
46
46
|
### Sub-path Exports
|
|
47
47
|
|
|
48
|
-
| Path
|
|
49
|
-
|
|
|
50
|
-
| `@haklex/rich-renderer-katex`
|
|
51
|
-
| `@haklex/rich-renderer-katex/style.css` | Stylesheet
|
|
48
|
+
| Path | Description |
|
|
49
|
+
| --------------------------------------- | ------------ |
|
|
50
|
+
| `@haklex/rich-renderer-katex` | Full exports |
|
|
51
|
+
| `@haklex/rich-renderer-katex/style.css` | Stylesheet |
|
|
52
52
|
|
|
53
53
|
## Part of Haklex
|
|
54
54
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haklex/rich-renderer-katex",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.25.1",
|
|
4
4
|
"description": "KaTeX math renderer for haklex rich editor",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"lucide-react": "^1.0.0",
|
|
43
43
|
"react": ">=19",
|
|
44
44
|
"react-dom": ">=19",
|
|
45
|
-
"@haklex/rich-editor": "0.
|
|
46
|
-
"@haklex/rich-editor-ui": "0.
|
|
47
|
-
"@haklex/rich-style-token": "0.
|
|
45
|
+
"@haklex/rich-editor": "0.25.1",
|
|
46
|
+
"@haklex/rich-editor-ui": "0.25.1",
|
|
47
|
+
"@haklex/rich-style-token": "0.25.1"
|
|
48
48
|
},
|
|
49
49
|
"peerDependenciesMeta": {
|
|
50
50
|
"katex": {
|