Skip to content

Missing list default decoration #103

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ChasexCodex opened this issue May 23, 2022 · 3 comments
Open

Missing list default decoration #103

ChasexCodex opened this issue May 23, 2022 · 3 comments

Comments

@ChasexCodex
Copy link

The default decoration for lists (ordered and unordered) is not included.

@iShawnWang
Copy link

same issue here

@Gaochengzhi
Copy link

.mylist ul
{
list-style: initial;
margin: initial;
padding: 0 0 0 40px;
}
.mylist ul li
{
display: list-item;
}

.mylist ol
{
list-style-type:decimal;
margin: initial;
padding: 0 0 0 40px;
}

.mylist ol li
{
display: list-item;
}

@j-heaton
Copy link

j-heaton commented Nov 23, 2022

this works for me

<ReactMarkdown style={{ all: "revert" }} className="markdown-body"
                             components={{
                               ol: ({ node, ...props }) => <ol style={{ listStyle: "revert" }} {...props} />,
                               ul: ({ node, ...props }) => <ul style={{ listStyle: "revert" }} {...props} />,
                             }} >
{markdown}
</ReactMarkdown>

cfngc4594 added a commit to massbug/judge4c that referenced this issue Mar 10, 2025
…d lists

- Restored default list decorations (bullet points for `ul` and numbers for `ol`).
- Solution based on issue from `sindresorhus/github-markdown-css#103`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants