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

Does not parse ordered list from markdown correctly, #806

Closed
4 tasks done
zerogtiger opened this issue Dec 30, 2023 · 6 comments
Closed
4 tasks done

Does not parse ordered list from markdown correctly, #806

zerogtiger opened this issue Dec 30, 2023 · 6 comments
Labels
🙋 no/question This does not need any changes 👎 phase/no Post cannot or will not be acted on

Comments

@zerogtiger
Copy link

Initial checklist

Affected packages and versions

react-markdown (^9.0.0), rehype-raw (^7.0.0)

Link to runnable example

No response

Steps to reproduce

Run the following snippet in a suitable JS file: (node version 21.2.0, npm version 10.2.5)

    <ReactMarkdown rehypePlugins={[rehypeRaw]} children={'<ol><li>Item 1</li><li>Item 2</li><li>Item 3</li></ol>'} />

Expected behavior

  1. Item 1
  2. Item 2
  3. Item 3

Actual behavior

  item 1
  item 2
  item 3

Runtime

No response

Package manager

No response

OS

macOS

Build and bundle tools

Next.js

@github-actions github-actions bot added 👋 phase/new Post is being triaged automatically 🤞 phase/open Post is being triaged manually and removed 👋 phase/new Post is being triaged automatically labels Dec 30, 2023
@ChristianMurphy
Copy link
Member

ChristianMurphy commented Dec 30, 2023

Welcome @zerogtiger! 👋
Sorry you ran into a spot of trouble.

I can't replicate the issue you describe on the playground page https://remarkjs.github.io/react-markdown/

Are you using Tailwind or another styling library with heavy-handed resets on your page?
This is the most likely root cause.

The second most likely is a mismatch between dependency versions.
Make sure both react markdown and rehype raw are on the latest version.

@ChristianMurphy ChristianMurphy added the 🙉 open/needs-info This needs some more info label Dec 30, 2023

This comment has been minimized.

@zerogtiger
Copy link
Author

Hey Christian,

Thanks for the quick reply. I am indeed using tailwindcss and have pinpointed the issue thanks to your reminder. It does not have to do with rehype or react-markdown.

Wishing you a wonderful holiday season!

This comment has been minimized.

@ChristianMurphy ChristianMurphy added 🙋 no/question This does not need any changes and removed 🙉 open/needs-info This needs some more info labels Dec 30, 2023
@github-actions github-actions bot removed the 🤞 phase/open Post is being triaged manually label Dec 30, 2023

This comment has been minimized.

This comment was marked as resolved.

@github-actions github-actions bot added the 👎 phase/no Post cannot or will not be acted on label Dec 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🙋 no/question This does not need any changes 👎 phase/no Post cannot or will not be acted on
Development

No branches or pull requests

2 participants