ul
styled with disc inside
irregular indentation
#2095
Replies: 1 comment
-
This is, at the root, likely due to how interleaving works. https://mdxjs.com/docs/what-is-mdx/#interleaving. In essence, “same line or not”. That makes the first item a “block” on its own. And the second item a “paragraph” that contains the components and the If you don’t like the interleaving, you can always force JSX by opening expressions, e.g., - {<><span>Example</span></>}
- {<><span>Example</span>.</>} …or the whole list in JSX maybe? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone, in my MDX code I have a
ul
with twoli
items, each with a component but one followed by additional plain text e.g:When I style this
ul
withlist-style: disc inside
, I somehow get additionalwhitespace
added before the start of the component text only on theli
that is not followed by plain text. This leads to choppy indentation, e.gDoes anyone have any ideas of what might be causing this and what I could do to fix it? Thank you!
Beta Was this translation helpful? Give feedback.
All reactions