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

CHORE Allow markdown component to open links in new tabs #486

Merged
merged 2 commits into from
Jan 28, 2020

Conversation

dbatten5
Copy link
Contributor

Since the current markdown parsing package has a known issue with
rendering inline html (rexxars/commonmark-react-renderer#9) which
has been an issue for 3 years+, we need a new markdown package in order to render links which open in new tabs. The react-markdown package has an option to render links with target="_blank" attribute and is well maintained, so this commit replaces the current package with react-markdown and allows the component to pass that option through.

@vercel
Copy link

vercel bot commented Jan 23, 2020

This pull request is being automatically deployed with ZEIT Now (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://zeit.co/appearherebloom/bloom/2sz1e9bxh
✅ Preview: https://bloom-git-chore-update-markdown-component.appearherebloom.now.sh

Since the current markdown parsing package has a known issue with
rendering inline html
(rexxars/commonmark-react-renderer#9) which
has been an issue for 3 years+, we need a new markdown package. The
react-markdown package has an option to render links with target="_blank"
so this commit allows the component to pass that option through
The test wasn't working with the updated `Markdown` component as it
needs some special loader config to work with jest. Since the styleguide
is no longer maintained and the `Introduction` component works fine on
the styleguid page I've made the decision to skip the test for now.
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.

5 participants