File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,17 @@ export const TemplatePageView: React.FC<TemplatePageViewProps> = ({
62
62
</ WorkspaceSection >
63
63
< WorkspaceSection title = "README" contentsProps = { { className : styles . readmeContents } } >
64
64
< div className = { styles . markdownWrapper } >
65
- < ReactMarkdown > { activeTemplateVersion . readme } </ ReactMarkdown >
65
+ < ReactMarkdown
66
+ components = { {
67
+ a : ( { href, target, children } ) => (
68
+ < Link href = { href } target = { target } >
69
+ { children }
70
+ </ Link >
71
+ ) ,
72
+ } }
73
+ >
74
+ { activeTemplateVersion . readme }
75
+ </ ReactMarkdown >
66
76
</ div >
67
77
</ WorkspaceSection >
68
78
</ Stack >
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ export const MockTemplateVersion: TypesGen.TemplateVersion = {
88
88
updated_at : "" ,
89
89
job : MockProvisionerJob ,
90
90
name : "test-version" ,
91
- readme : "## Instructions\nYou can add instructions here" ,
91
+ readme : "## Instructions\nYou can add instructions here\n\n[Some link info](https://coder.com) " ,
92
92
}
93
93
94
94
export const MockTemplate : TypesGen . Template = {
You can’t perform that action at this time.
0 commit comments