Rename the markdownOptions "parser" property to "render" (#2030)

The `parser` key isn't valid, `render` needs to be used instead so just updating the docs to save anyone else a headache.
This commit is contained in:
Joshua Jackson 2021-11-30 03:12:42 +00:00 committed by GitHub
parent 4e06767c01
commit 247b6a027b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,7 +14,7 @@ Astro lets you use any Markdown parser you want. It just needs to be a function
// astro.config.mjs
export default {
markdownOptions: {
parser: [
render: [
'parser-name', // or import('parser-name') or (contents) => {...}
{
// options
@ -47,7 +47,7 @@ If you want to add a plugin, you need to install the npm package dependency in y
// astro.config.mjs
export default {
markdownOptions: {
parser: [
render: [
'@astrojs/markdown-remark',
{
remarkPlugins: [
@ -73,7 +73,7 @@ You can provide names of the plugins as well as import them:
// astro.config.mjs
export default {
markdownOptions: {
parser: [
render: [
'@astrojs/markdown-remark',
{
remarkPlugins: [