#Lists are not rendered correctly

25 messages ยท Page 1 of 1 (latest)

cedar tiger
#

I'm not sure of this is intended but having lists doesn't render them with a dot before it. Is this intended and I have to stlye that myself with CSS?

I don't think I have a CSS reset somewhere and it even is like this for other browser.s

raven lagoon
#

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?

cedar tiger
#

Its starlight ๐Ÿ˜…

raven lagoon
cedar tiger
#

No worries

left stag
#

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 ๐Ÿ™Œ

cedar tiger
#

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)
#

Fun fact, if you inspect the elements, you can see the following:

raven lagoon
#

Taking a look at your package.json, I'm pretty sure this reset comes from Tailwind?

cedar tiger
#

I can remove it. lemme check

#

what should I remove from my global.css? ๐Ÿ˜…

raven lagoon
#

The @import statements I believe?

#

I don't use tailwind anymore, I just know they have pretty big resets

cedar tiger
#

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.

raven lagoon
#

Wait, I think you can disable the preflight (resets) somehow

cedar tiger
#

I have to look that up.

raven lagoon
#

Otherwise, you can probably just overwrite that specific styling if everything else works for you

cedar tiger
#

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 ^^

slender drumBOT
#
If your issue is resolved, please help by doing the following two steps:
  1. 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.
  2. 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!