feat(mdx): add siteConfig.markdown.format to configure the default content parser (MDX / CommonMark) (#9097)

This commit is contained in:
Sébastien Lorber 2023-06-23 18:15:05 +02:00 committed by GitHub
parent be4e67caa9
commit cc6d9696f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 304 additions and 83 deletions

View file

@ -20,7 +20,7 @@ Provide global meta attributes for the entire site through the [site configurati
module.exports = {
themeConfig: {
metadata: [{name: 'keywords', content: 'cooking, blog'}],
// This would become <meta name="keywords" content="cooking, blog"> in the generated HTML
// This would become <meta name="keywords" content="cooking, blog"/> in the generated HTML
},
};
```
@ -37,7 +37,7 @@ Similar to [global metadata](#global-metadata), Docusaurus also allows for the a
# A cooking guide
<head>
<meta name="keywords" content="cooking, blog">
<meta name="keywords" content="cooking, blog"/>
</head>
Some content...

View file

@ -20,7 +20,7 @@ Provide global meta attributes for the entire site through the [site configurati
module.exports = {
themeConfig: {
metadata: [{name: 'keywords', content: 'cooking, blog'}],
// This would become <meta name="keywords" content="cooking, blog"> in the generated HTML
// This would become <meta name="keywords" content="cooking, blog"/> in the generated HTML
},
};
```
@ -37,7 +37,7 @@ Similar to [global metadata](#global-metadata), Docusaurus also allows for the a
# A cooking guide
<head>
<meta name="keywords" content="cooking, blog">
<meta name="keywords" content="cooking, blog"/>
</head>
Some content...

View file

@ -20,7 +20,7 @@ Provide global meta attributes for the entire site through the [site configurati
module.exports = {
themeConfig: {
metadata: [{name: 'keywords', content: 'cooking, blog'}],
// This would become <meta name="keywords" content="cooking, blog"> in the generated HTML
// This would become <meta name="keywords" content="cooking, blog"/> in the generated HTML
},
};
```
@ -37,7 +37,7 @@ Similar to [global metadata](#global-metadata), Docusaurus also allows for the a
# A cooking guide
<head>
<meta name="keywords" content="cooking, blog">
<meta name="keywords" content="cooking, blog"/>
</head>
Some content...

View file

@ -20,7 +20,7 @@ Provide global meta attributes for the entire site through the [site configurati
module.exports = {
themeConfig: {
metadata: [{name: 'keywords', content: 'cooking, blog'}],
// This would become <meta name="keywords" content="cooking, blog"> in the generated HTML
// This would become <meta name="keywords" content="cooking, blog"/> in the generated HTML
},
};
```
@ -37,7 +37,7 @@ Similar to [global metadata](#global-metadata), Docusaurus also allows for the a
# A cooking guide
<head>
<meta name="keywords" content="cooking, blog">
<meta name="keywords" content="cooking, blog"/>
</head>
Some content...

View file

@ -20,7 +20,7 @@ Provide global meta attributes for the entire site through the [site configurati
module.exports = {
themeConfig: {
metadata: [{name: 'keywords', content: 'cooking, blog'}],
// This would become <meta name="keywords" content="cooking, blog"> in the generated HTML
// This would become <meta name="keywords" content="cooking, blog"/> in the generated HTML
},
};
```
@ -37,7 +37,7 @@ Similar to [global metadata](#global-metadata), Docusaurus also allows for the a
# A cooking guide
<head>
<meta name="keywords" content="cooking, blog">
<meta name="keywords" content="cooking, blog"/>
</head>
Some content...