Skip to content

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

New issue

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

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

Already on GitHub? # to your account

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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant