diff --git a/src/formats/formats.js b/src/formats/formats.js index 6eafb5d9..fc7740fe 100644 --- a/src/formats/formats.js +++ b/src/formats/formats.js @@ -15,6 +15,7 @@ function formatByType(type) { export function formatByExtension(extension) { return { yml: yamlFormatter, + yaml: yamlFormatter, json: jsonFormatter, md: FrontmatterFormatter, markdown: FrontmatterFormatter, @@ -24,6 +25,7 @@ export function formatByExtension(extension) { function formatByName(name) { return { + yml: yamlFormatter, yaml: yamlFormatter, frontmatter: FrontmatterFormatter, }[name] || FrontmatterFormatter;