docs: add editor integration
This commit is contained in:
parent
940053b740
commit
9125932f4b
1 changed files with 11 additions and 0 deletions
|
@ -54,6 +54,17 @@ export default defineConfig({
|
|||
});
|
||||
```
|
||||
|
||||
|
||||
### Editor Integration
|
||||
|
||||
[VS Code](https://code.visualstudio.com/) supports Markdown by default. However, for Markdoc editor support, you may wish to add the following setting in your VSCode config. This ensures authoring Markdoc files provides a Markdown-like editor experience.
|
||||
|
||||
```json title=".vscode/settings.json"
|
||||
"files.associations": {
|
||||
"*.mdoc": "markdown"
|
||||
}
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
Markdoc files can only be used within content collections. Add entries to any content collection using the `.mdoc` extension:
|
||||
|
|
Loading…
Reference in a new issue