mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-07 18:01:40 -05:00
refactor: update gatsby schema, remove customization + use inferrable type (#65857)
This commit is contained in:
committed by
GitHub
parent
3250669a2b
commit
e902fd270f
@@ -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
|
||||
};
|
||||
}
|
||||
}) ?? [];
|
||||
|
||||
Reference in New Issue
Block a user