Skip to content
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

Text color style doesn't apply to lists and unorderd lists #232

Closed
George3d6 opened this issue Oct 3, 2024 · 2 comments
Closed

Text color style doesn't apply to lists and unorderd lists #232

George3d6 opened this issue Oct 3, 2024 · 2 comments

Comments

@George3d6
Copy link

I am trying to get the text in my lists and unordered lists to appear as black, but can't (MacBook defaults text to being white). This is my element:

<Markdown
                          key={sub_index}
                          style={{
                            body: { color: 'black'},
                            heading1: { color: 'black'},
                            heading2: { color: 'black'},
                            heading3: { color: 'black'},
                            heading4: { color: 'black'},
                            heading5: { color: 'black'},
                            heading6: { color: 'black'},
                            hr: { color: 'black'},
                            strong: { color: 'black'},
                            em: { color: 'black'},
                            s: { color: 'black'},
                            blockquote: { color: 'black'},
                            bullet_list: { color: 'black'},
                            ordered_list: { color: 'black'},
                            list_item: { color: 'black'},
                            code_inline: { color: 'black'},
                            code_block: { color: 'black'},
                            fence: { color: 'black'},
                            table: { color: 'black'},
                            thead: { color: 'black'},
                            tbody: { color: 'black'},
                            th: { color: 'black'},
                            tr: { color: 'black'},
                            td: { color: 'black'},
                            link: { color: 'black'},
                            blocklink: { color: 'black'},
                            image: { color: 'black'},
                            text: { color: 'black'},
                            textgroup: { color: 'black'},
                            paragraph: { color: 'black'},
                            hardbreak: { color: 'black'},
                            softbreak: { color: 'black'},
                            pre: { color: 'black'},
                            inline: { color: 'black'},
                            span: { color: 'black'},
                            ordered_list_content: { color: 'black'},
                            bullet_list_icon: { color: 'black'},
                            ordered_list_icon: { color: 'black'},
                            bullet_list_content: { color: 'black'}
                          }}>
                          {fmted_item}
                        </Markdown>

I tried with and without the last 4 properties, same result -- the styling does work for other elements (which defaulted to white before)

@George3d6
Copy link
Author

Oh, my bad, it's not a color issue, it seems simply unable to render lists o.o

@George3d6
Copy link
Author

Closing, same issue as: #218

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

1 participant