-
Notifications
You must be signed in to change notification settings - Fork 937
Closed
Labels
Description
Description
const data = ['string',.....] ( length >=1500 )
const value = data.join('\n')
const editor = usePlateEditor({
plugins: EditorKit,
value: (editor) => {
const nodes = editor.getApi(MarkdownPlugin).markdown.deserialize(value);
return nodes;
},
});
It took about 20 seconds too slow when the data is large.
what is a way to quickly deserialize?
Do I still need to deserialize my string if it is markdown syntax?
Reproduction URL
No response
Reproduction steps
const data = ['string',.....] ( length >=1500 )
const value = data.join('\n')
const editor = usePlateEditor({
plugins: EditorKit,
value: (editor) => {
const nodes = editor.getApi(MarkdownPlugin).markdown.deserialize(value);
return nodes;
},
});
`
It took about 20 seconds too slow when the data is large.
what is a way to quickly deserialize?
Do I still need to deserialize my string if it is markdown syntax?Plate version
51.0.0
Slate React version
19.2.0
Screenshots
Logs
Browsers
No response