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";
9
9
import styled from "styled-components" ;
10
10
import { Prism as SyntaxHighlighter } from "react-syntax-highlighter" ;
11
11
import { materialOceanic } from "react-syntax-highlighter/dist/cjs/styles/prism" ;
12
+ import Link from "next/link" ;
12
13
13
14
const ARTICLES_PATH = path . join ( process . cwd ( ) , "articles" ) ;
14
15
@@ -53,6 +54,13 @@ export default function DocPage(props: Props) {
53
54
< ReactMarkdownContainer >
54
55
< ReactMarkdown
55
56
renderers = { {
57
+ link : ( { children, href } ) => {
58
+ return (
59
+ < Link href = { href } >
60
+ < a > { children } </ a >
61
+ </ Link >
62
+ ) ;
63
+ } ,
56
64
code : ( { language, value } ) => {
57
65
return < SyntaxHighlighter style = { materialOceanic } language = { language } children = { value } /> ;
58
66
} ,
You can’t perform that action at this time.
0 commit comments