What version of starlight are you using?
0.36.0
What version of astro are you using?
5.14.4
What package manager are you using?
npm
What operating system are you using?
Linux
What browser are you using?
Chrome, Firefox
Describe the Bug
We need to use a symlink in content/docs that points to another folder higher up to make contribution of guides in our open source project (RIOT OS) more accessible.
We need a symlink so that we can still have the remark and rehype plugins that are applied by starlight and only work with files from the content/docs folder.
We found a strange impact on rendering of :::note annotations with .mdx files when they come from the symlink. Even more strange is that this works for normal .md files. Only .mdx files are affected.
Background
Normally in .mdx files I can write this:
:::note
This is a note
:::
and it renders as this:
But in a .mdx file that comes from a symlink this is ignored and the text is just printed normally without formatting.
Link to Minimal Reproducible Example
https://github.com/LasseRosenow/starlight-symlink-mdx-bug
Probably related:
#3332
Participation
What version of
starlightare you using?0.36.0
What version of
astroare you using?5.14.4
What package manager are you using?
npm
What operating system are you using?
Linux
What browser are you using?
Chrome, Firefox
Describe the Bug
We need to use a symlink in
content/docsthat points to another folder higher up to make contribution of guides in our open source project (RIOT OS) more accessible.We need a symlink so that we can still have the
remarkandrehypeplugins that are applied bystarlightand only work with files from thecontent/docsfolder.We found a strange impact on rendering of
:::noteannotations with.mdxfiles when they come from the symlink. Even more strange is that this works for normal.mdfiles. Only.mdxfiles are affected.Background
Normally in
.mdxfiles I can write this:and it renders as this:
Note
This is a note
But in a
.mdxfile that comes from a symlink this is ignored and the text is just printed normally without formatting.Link to Minimal Reproducible Example
https://github.com/LasseRosenow/starlight-symlink-mdx-bug
Probably related:
#3332
Participation