You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 21, 2019. It is now read-only.
import { createHyperscript } from '@gitbook/slate-hyperscript';
const h = createHyperscript({
blocks: {
heading: 'heading',
paragraph: 'paragraph',
code_block: 'code_block',
code_line: 'code_line'
}
});
const value = (
<value>
<document>
<heading>Slate + Code Editing</heading>
<paragraph>
{
'This page is a basic example of Slate + slate-edit-code plugin. Press Tab to indent code. Shift+Tab to unindent. Press Enter to carry indentation onto the newline. Press Mod (Cmd on Mac, Ctrl on Windows) + Enter to exit the code block.'