From 247b6a027ba55d854c27ad8439f11cffb51abaca Mon Sep 17 00:00:00 2001 From: Joshua Jackson Date: Tue, 30 Nov 2021 03:12:42 +0000 Subject: [PATCH] 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. --- docs/src/pages/guides/markdown-content.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/src/pages/guides/markdown-content.md b/docs/src/pages/guides/markdown-content.md index 5590f0906..da9e64c3d 100644 --- a/docs/src/pages/guides/markdown-content.md +++ b/docs/src/pages/guides/markdown-content.md @@ -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: [