diff --git a/src/pages/docs/reference/configuration.md b/src/pages/docs/reference/configuration.md index d9a7f54c..36189943 100644 --- a/src/pages/docs/reference/configuration.md +++ b/src/pages/docs/reference/configuration.md @@ -229,6 +229,33 @@ After installing the package, pass the plugin name as a string: +If you need to pass options to a markdown plugin, you can use object syntax with the plugin name and the options it takes. + + + + + + ```js + export default { + markdown: { + plugins: [ + "rehype-slug", + "remark-gfm", + { + name: "rehype-autolink-headings", + options: { + behavior: "append" + }, + }, + ], + }, + }; + ``` + + + + + ## Optimization Greenwood provides a number of different ways to send hints to Greenwood as to how JavaScript and CSS tags in your HTML should get loaded by the browser. Greenwood supplements, and builds up on top of existing [resource "hints" like `preload` and `prefetch`](https://developer.mozilla.org/en-US/docs/Web/HTML/Preloading_content).