mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-22 06:53:25 +02:00
Fix display bug in GitBook (#4402)
It appears that GitBook doesn't support ```typescript jsx. See https://docs.slatejs.org/walkthroughs/01-installing-slate
This commit is contained in:
@@ -66,7 +66,7 @@ declare module 'slate' {
|
||||
}
|
||||
```
|
||||
|
||||
```typescript jsx
|
||||
```typescript
|
||||
// Also you must annotate `useState<Descendant[]>` and the editor's initial value.
|
||||
const App = () => {
|
||||
const initialValue: CustomElement = []
|
||||
|
Reference in New Issue
Block a user