I am currently working on a blog using NextJS, and I have encountered an issue with Tailwind's list style type. It seems that the default styling for list style type is set to list-none
, resulting in my <ul> <li>
elements not being styled at all.
In order to process .md
files, I am utilizing remark, however, the function returns <ul> <li>
without any classes. This means I am unable to manually add specific classes to style them accordingly.
- Is there a way to override this default styling and apply a different style to my
<ul> <li>
elements? - Alternatively, is there a method to assign a
list-disc
class to all instances of<ul> <li>
automatically? - Or perhaps, is it possible to exclude certain
<div>
elements from being styled by Tailwind? - If none of these options work, I would appreciate hearing about any other approaches or solutions.
I attempted the following:
// tailwind.config.js
module.exports = {
corePlugins: {
// ...
listStyleType: false,
}
}
Unfortunately, this did not resolve the issue. Any assistance or guidance on how to tackle this problem would be greatly appreciated.