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

feat: allow dangerous html flag (CT-000) #88

Merged
merged 4 commits into from
Nov 25, 2023

Conversation

DecathectZero
Copy link
Member

No description provided.

remarkPlugins: [remarkGfm],
linkTarget: '_blank',
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is no longer supported:
remarkjs/react-markdown#761

@@ -35,14 +34,18 @@ const MarkdownText = styled(ReactMarkdown, {
});

MarkdownText.defaultProps = {
rehypePlugins: [rehypeRaw],
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rehypeRaw is the dangerous one - this is now gone by default.

@DecathectZero DecathectZero force-pushed the tyler/allow-dangerous-html/CT-000 branch from 5ae3bc7 to 26f9994 Compare November 25, 2023 17:01
@DecathectZero DecathectZero merged commit 2363764 into master Nov 25, 2023
@DecathectZero DecathectZero deleted the tyler/allow-dangerous-html/CT-000 branch November 25, 2023 17:02
ChidiNweze pushed a commit to ChidiNweze/react-chat that referenced this pull request Jan 22, 2025
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

Successfully merging this pull request may close these issues.

1 participant