Skip to content

Replace html anchors with React Router Link component #20

Answered by sibiraj-s
romatou asked this question in Q&A
Discussion options

You must be logged in to vote

It will be like this

const renderer = {
  link(snippet, lang) {
    return <Link />;
  },
};

<Markdown renderer={renderer} />

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sibiraj-s
Comment options

Answer selected by sibiraj-s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #19 on September 29, 2023 08:13.