Replies: 2 comments
-
|
You can use |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
To make your lists more space-efficient and match your regular text spacing, you can override the default typography margins using these specific utility classes:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey folks,

I am currently rendering some markdown, and the typography plugin is coming in really handy - thanks for making it!
I do struggle with one thing though: lists (and their elements) look kind of out of place.
See here:
I am trying to make the rendering space-efficient, while still looking nicely styled. Preferably, the list and its items would have a similar vertical spacing to the regular text, so that they fit in better.
currently, I am using these classes to style the Markdown:
<div className='prose text-base leading-normal prose-blue max-w-none'> {markdown} </div>I have tried playing around with the
prose-ul:andprose-li:utility classes, but as my CSS-knowledge is a bit lacking, that did not help much either.As context, I am using React-Markdown to convert plain text to markdown and the HTML looks something like this:
If any of you have had a similar problem or know a solution, I'd be grateful about any and all suggestions! :)
Beta Was this translation helpful? Give feedback.
All reactions