Skip to content

Commit 8291e7c

Browse files
remove markdown configuration from config docs
1 parent b2c565f commit 8291e7c

File tree

1 file changed

+0
-52
lines changed

1 file changed

+0
-52
lines changed

src/pages/docs/reference/configuration.md

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ export default {
2323
},
2424
isolation: false,
2525
layoutsDirectory: "layouts", // e.g. ./src/layouts
26-
markdown: {
27-
plugins: [],
28-
},
2926
optimization: "default",
3027
pagesDirectory: "pages", // e.g. ./src/pages
3128
plugins: [],
@@ -207,55 +204,6 @@ By default the directory Greenwood will use to look for your layouts is in _layo
207204
208205
<!-- prettier-ignore-end -->
209206
210-
## Markdown
211-
212-
You can install [**remark**](https://remark.js.org/) or [**rehype**](https://github.com/rehypejs/rehype) compatible plugins to extend Greenwood's markdown rendering and transformation capabilities by passing them as an array to the `markdown` setting.
213-
214-
After installing the package, pass the plugin name as a string:
215-
216-
<!-- prettier-ignore-start -->
217-
218-
<app-ctc-block variant="snippet">
219-
220-
```js
221-
export default {
222-
markdown: {
223-
plugins: ["rehype-slug", "remark-gfm"],
224-
},
225-
};
226-
```
227-
228-
</app-ctc-block>
229-
230-
<!-- prettier-ignore-end -->
231-
232-
If you need to pass options to a markdown plugin, you can use object syntax with the plugin name and the options it takes.
233-
234-
<!-- prettier-ignore-start -->
235-
236-
<app-ctc-block variant="snippet">
237-
238-
```js
239-
export default {
240-
markdown: {
241-
plugins: [
242-
"rehype-slug",
243-
"remark-gfm",
244-
{
245-
name: "rehype-autolink-headings",
246-
options: {
247-
behavior: "append"
248-
},
249-
},
250-
],
251-
},
252-
};
253-
```
254-
255-
</app-ctc-block>
256-
257-
<!-- prettier-ignore-end -->
258-
259207
## Optimization
260208
261209
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).

0 commit comments

Comments
 (0)