You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds a new [`markdown.processedDirs`](https://starlight.astro.build/reference/configuration/#processeddirs) configuration option to specify additional directories where files should be processed by Starlight’s Markdown pipeline.
6
+
7
+
By default, Starlight’s processing only applies to Markdown and MDX content loaded using Starlight’s `docsLoader()`. This new option allows to extend this processing to other directories, which can be useful if you are rendering content from a custom content collection using the `<StarlightPage>` component and expect Starlight’s Markdown processing to be applied to that content as well.
Define additional directories where files should be processed by Starlight’s Markdown pipeline.
408
+
By default, only Markdown and MDX content loaded using Starlight's [`docsLoader()`](/reference/configuration/#docsloader) is processed.
409
+
Supports local directories relative to the root of your project, e.g. `'./src/data/comments/'`.
410
+
411
+
Starlight’s processing includes support for [clickable heading anchor links](#headinglinks), [asides Markdown directive syntax](/guides/authoring-content/#asides), and RTL support for code blocks.
412
+
This option can be useful if you are rendering content from a custom content collection in a [custom page](/guides/pages/#custom-pages) using the `<StarlightPage>` component and expect Starlight's Markdown processing to be applied to that content as well.
413
+
414
+
```js
415
+
starlight({
416
+
markdown: {
417
+
// Process Markdown files from the `reviews` content collection located in the
test('adds RTL support to code and preformatted text elements for entries not part of the `docs` collection matching the `markdown.processedDirs` option',async({
469
+
getProdServer,
470
+
page,
471
+
})=>{
472
+
conststarlight=awaitgetProdServer();
473
+
474
+
// Content entry from the `comments` content collection
0 commit comments