Skip to content

Commit 1cf4cbd

Browse files
committed
fix: drop markdown.mdc option, plugin can be controlled vie markdown.remarkPlugins
1 parent b5b7759 commit 1cf4cbd

File tree

3 files changed

+1
-32
lines changed

3 files changed

+1
-32
lines changed

docs/content/docs/1.getting-started/3.configuration.md

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -21,32 +21,6 @@ Nuxt Content read and parse all the available contents at built time. This optio
2121

2222
Configure markdown parser.
2323

24-
#### `mdc`
25-
26-
::code-group
27-
```ts [Default]
28-
mdc: true
29-
```
30-
```ts [Signature]
31-
type Mdc = boolean
32-
```
33-
::
34-
35-
If you wish to disable MDC syntax support in your contents, you can set this option to `false`.
36-
37-
```ts [nuxt.config.ts]
38-
export default defineNuxtConfig({
39-
content: {
40-
build: {
41-
markdown: {
42-
// Disable MDC syntax support
43-
mdc: false,
44-
}
45-
}
46-
}
47-
})
48-
```
49-
5024
#### `toc`
5125

5226

src/types/module.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,6 @@ export interface ModuleOptions {
5656
}
5757
build: {
5858
markdown: {
59-
/**
60-
* Whether MDC syntax should be supported or not.
61-
*
62-
* @default true
63-
*/
64-
mdc?: boolean
6559
/**
6660
* Control behavior of Table of Contents generation
6761
*/

src/utils/content/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ export async function parseContent(key: string, content: string, collection: Res
104104
markdown: {
105105
compress: true,
106106
...mdcOptions,
107+
...contentOptions,
107108
rehypePlugins: {
108109
highlight: mdcOptions.highlight === false
109110
? undefined

0 commit comments

Comments
 (0)