From f3b316e81659c548a8b09390bf58c59f2a958c05 Mon Sep 17 00:00:00 2001 From: ilovecommits <83459976+ilovecommits@users.noreply.github.com> Date: Thu, 5 Aug 2021 06:53:37 +0200 Subject: [PATCH] Fix display bug in GitBook (#4402) It appears that GitBook doesn't support ```typescript jsx. See https://docs.slatejs.org/walkthroughs/01-installing-slate --- docs/walkthroughs/01-installing-slate.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/walkthroughs/01-installing-slate.md b/docs/walkthroughs/01-installing-slate.md index 02624d665..461d97b4a 100644 --- a/docs/walkthroughs/01-installing-slate.md +++ b/docs/walkthroughs/01-installing-slate.md @@ -66,7 +66,7 @@ declare module 'slate' { } ``` -```typescript jsx +```typescript // Also you must annotate `useState` and the editor's initial value. const App = () => { const initialValue: CustomElement = []