feat: basic support for mdx file extension (#964)

This commit is contained in:
Daniel Lautzenheiser
2023-10-31 11:31:04 -04:00
committed by GitHub
parent 597d135ff7
commit 215cb21e89
7 changed files with 76 additions and 1 deletions

View File

@ -17,3 +17,6 @@ quote_type = single
[*.md]
trim_trailing_whitespace = false
[*.mdx]
trim_trailing_whitespace = false

View File

@ -57,7 +57,7 @@ collections: [
These settings determine how collection files are parsed and saved. Both are optional—Static CMS will attempt to infer your settings based on existing items in the collection. If your collection is empty, or you'd like more control, you can set these fields explicitly.
`extension` determines the file extension searched for when finding existing entries in a folder collection and it determines the file extension used to save new collection items. It accepts the following values: `yml`, `yaml`, `json`, `md`, `markdown`, `html`.
`extension` determines the file extension searched for when finding existing entries in a folder collection and it determines the file extension used to save new collection items. It accepts the following values: `yml`, `yaml`, `json`, `md`, `markdown`, `mdx`, `html`.
You may also specify a custom `extension` not included in the list above, as long as the collection files can be parsed and saved in one of the supported formats below.