File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import { SideBar } from "../../components/SideBar";
99import styled from "styled-components" ;
1010import { Prism as SyntaxHighlighter } from "react-syntax-highlighter" ;
1111import { materialOceanic } from "react-syntax-highlighter/dist/cjs/styles/prism" ;
12+ import Link from "next/link" ;
1213
1314const ARTICLES_PATH = path . join ( process . cwd ( ) , "articles" ) ;
1415
@@ -53,6 +54,13 @@ export default function DocPage(props: Props) {
5354 < ReactMarkdownContainer >
5455 < ReactMarkdown
5556 renderers = { {
57+ link : ( { children, href } ) => {
58+ return (
59+ < Link href = { href } >
60+ < a > { children } </ a >
61+ </ Link >
62+ ) ;
63+ } ,
5664 code : ( { language, value } ) => {
5765 return < SyntaxHighlighter style = { materialOceanic } language = { language } children = { value } /> ;
5866 } ,
You can’t perform that action at this time.
0 commit comments