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

Added condition to check if it's an anchor link #8132

Merged
merged 3 commits into from
Nov 15, 2019

Conversation

victorgb6
Copy link
Contributor

@victorgb6 victorgb6 commented Sep 19, 2019

Issue: #8068 #8184

What I did

I checked that at Notes addon if you use an anchor link in markdown it's using the component to render and if you click on that link it's redirecting to another page instead of scrolling to the section. I added a regex to check if the link starts with # and used the normal tag to render instead the , same way if it's an absolute url.

How to test

  • Is this testable with Jest or Chromatic screenshots? No
  • Does this need a new example in the kitchen sink apps? No
  • Does this need an update to the documentation? No

If your answer is yes to any of these, please make sure to include it in your PR.

@vercel
Copy link

vercel bot commented Sep 19, 2019

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/storybook/monorepo/buq0p3ctc
🌍 Preview: https://monorepo-git-fork-victorgb6-fix-addon-notes-anchor-links.storybook.now.sh

@victorgb6 victorgb6 changed the title Add condiction to check if it's an anchor link Add condition to check if it's an anchor link Sep 19, 2019
@victorgb6 victorgb6 changed the title Add condition to check if it's an anchor link Added condition to check if it's an anchor link Sep 19, 2019
@ndelangen ndelangen self-assigned this Oct 18, 2019
@ndelangen
Copy link
Member

@shilman could you please take a peak at this?

@shilman
Copy link
Member

shilman commented Oct 19, 2019

Thanks @ndelangen. Will kick the tires on it this weekend & get back!

@ndelangen
Copy link
Member

good to merge @shilman ?

@stale stale bot added the inactive label Nov 13, 2019
@stale stale bot removed the inactive label Nov 14, 2019
@storybookjs storybookjs deleted a comment from stale bot Nov 15, 2019
@ndelangen ndelangen added this to the 5.3.0 milestone Nov 15, 2019
@ndelangen ndelangen merged commit 71a2b5e into storybookjs:next Nov 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants