This commit is contained in:
2025-08-25 20:24:23 +08:00
parent 30106e0129
commit 0ae8d7a709
1044 changed files with 321581 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
import { createHyperscript } from 'slate-hyperscript';
const h = createHyperscript({
blocks: {
paragraph: 'paragraph',
'heading-one': 'heading-one',
'heading-two': 'heading-two',
'heading-three': 'heading-three',
'heading-four': 'heading-four',
'heading-five': 'heading-five',
'heading-six': 'heading-six',
quote: 'quote',
'code-block': 'code-block',
'bulleted-list': 'bulleted-list',
'numbered-list': 'numbered-list',
'thematic-break': 'thematic-break',
table: 'table',
},
inlines: {
link: 'link',
break: 'break',
image: 'image',
},
marks: {
b: 'bold',
i: 'italic',
s: 'strikethrough',
code: 'code',
},
});
export default h;