refactor: update gatsby schema, remove customization + use inferrable type (#65857)

This commit is contained in:
Oliver Eyton-Williams
2026-03-03 10:48:53 +01:00
committed by GitHub
parent 3250669a2b
commit e902fd270f
11 changed files with 581 additions and 490 deletions

View File

@@ -27,13 +27,13 @@ function plugin() {
) {
return {
type: 'interactiveEditor',
data: getFiles(node.children)
files: getFiles(node.children)
};
} else {
const paragraph = mdastToHTML([node]);
return {
type: 'paragraph',
data: paragraph
contents: paragraph
};
}
}) ?? [];