From 50b7959b60b2227ed5ee68ef53702950bf47a15d Mon Sep 17 00:00:00 2001 From: Kevin Ports Date: Wed, 31 Aug 2022 14:59:30 -0500 Subject: [PATCH] fix(anchor): ignore anchor hash when parsing internal link syntax --- __tests__/__snapshots__/index.test.js.snap | 2 ++ __tests__/index.test.js | 5 +++++ components/Anchor.jsx | 22 +++++++++++++--------- 3 files changed, 20 insertions(+), 9 deletions(-) diff --git a/__tests__/__snapshots__/index.test.js.snap b/__tests__/__snapshots__/index.test.js.snap index c836b350a..6307d6174 100644 --- a/__tests__/__snapshots__/index.test.js.snap +++ b/__tests__/__snapshots__/index.test.js.snap @@ -24,6 +24,8 @@ exports[`anchors with baseUrl 1`] = ` <a href=\\"page:slug\\">page</a></p>" `; +exports[`anchors with baseUrl and special characters in url hash 1`] = `"

ref

"`; + exports[`check list items 1`] = ` "