-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
@flazouh, you have passed the rehype plugin to the remark plugins list, I see you use react-markdown so this updated code snippet should work (note though: I’m currently not home, writing this on my iPad, did not actually test the code): return (
<div className="markdown-body size-full overflow-y-auto rounded-md p-1 px-2.5 text-left font-fluent text-base text-white">
<Markdown remarkPlugins={[remarkGfm]} rehypePlugins={[rehypeGithubAlerts]}>
{explanation}
</Markdown>
</div>
) Some related info: rehype != remark Remark is used to transform markdown, rehype to transform HTML (after markdown got turned into HTML) (It this is not a bug, I will turn this into a discussion, just waiting few days to make sure you have seen my answer) |
Beta Was this translation helpful? Give feedback.
-
@chrisweb Thanks for your quick answer, it seems to display better now, but not totally: Do you have any idea what's happening here ? Thanks ! |
Beta Was this translation helpful? Give feedback.
I have just now updated the css example in the readme, to now also include the colors for new caution and tip alerts, I also added a colors example for dark mode, maybe you want to adjust the colors accordingly, as I see that you seem to use darkmode in your project
Readme styling chapter