Skip to content

Commit

Permalink
feat: support single #xxx in md link
Browse files Browse the repository at this point in the history
  • Loading branch information
sanyuan0704 committed Nov 26, 2022
1 parent 57e6422 commit d90d60d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/island/src/node/plugin-mdx/remarkPlugins/link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const remarkPluginNormalizeLink: Plugin<
(node: any) => node.type === 'link',
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(node: any) => {
if (node.url.startsWith('http')) {
if (node.url.startsWith('http') || node.url.startsWith('#')) {
return;
}
// eslint-disable-next-line prefer-const
Expand Down

1 comment on commit d90d60d

@vercel
Copy link

@vercel vercel bot commented on d90d60d Nov 26, 2022

Choose a reason for hiding this comment

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

Please sign in to comment.