#Lists are not rendered correctly
25 messages ยท Page 1 of 1 (latest)
Hi! If this is just normal Astro, it shouldn't be adding any CSS. Maybe you're using an UI library which includes a reset?
Actually, just to be sure, could you paste the output of npm run astro info in here?
Its starlight ๐
Sure
Ah! Fair enough, couldn't tell from the screenshot and missed the tag.
No worries
If you are using VSCode, can you maybe try opening the Preview of the markdown file to validate if all the markdown correct (you should also see the dots in the preview). If the preview is correct, we can be sure that from the Markdown side, it is correct.
Could you also please share the location of your file relative to the root of the project? Is the markdown file inside src/content/docs/<folder>/<name>.md?
And please share the output of npm run astro info like Lou already suggested, then we know which versions you are using ๐
well, I'm using mdx.
Version Info:
Astro v5.14.0
Node v22.18.0
System macOS (arm64)
Package Manager pnpm
Output static
Adapter none
Integrations @astrojs/starlight (v0.36.0)
@astrojs/sitemap (v3.6.0)
And you can view the code yourself, it's on Github.
Another example: https://docs.ticketon.app/getting-started/#features
Code: https://github.com/The-LukeZ/ticketon-docs/blob/main/src/content/docs/getting-started.mdx#features
Fun fact, if you inspect the elements, you can see the following:
Taking a look at your package.json, I'm pretty sure this reset comes from Tailwind?
The @import statements I believe?
I don't use tailwind anymore, I just know they have pretty big resets
oh, yeah the tailwind import is doing it.
thing is, I still want to use tailwind so I have to make my own style for lists I believe.
Wait, I think you can disable the preflight (resets) somehow
I have to look that up.
aah, found it.
https://tailwindcss.com/docs/preflight#disabling-preflight
Otherwise, you can probably just overwrite that specific styling if everything else works for you
I found out, this is more difficult than expected, because many elements on the page are ul elements. So I disabled the preflight and it works fine now ๐
Thanks lads ^^
- From the ellipses (3-dot menu) in the top-right corner of the post (not the first message), edit the tags to include the Solved tag.
- From the same ellipses, select Close Post.
Your post will still be available to search and can be re-opened simply by replying in it. Closing a post moves it down with older posts, so we can more easily focus on issues that still need to be resolved.
Thank you for your help!