We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb75952 commit 77e7aabCopy full SHA for 77e7aab
packages/components/src/components/codeDependency/codeDependency.tsx
@@ -58,9 +58,13 @@ export class CodeDependency {
58
programmingLanguage?: string
59
60
public render() {
61
+ const [href, target] =
62
+ this.nodeKind === 'File' && this.label
63
+ ? [this.label, 'blank']
64
+ : [`#${this.nodeId}`, '']
65
return (
66
<Host>
- <a href={`#${this.nodeId}`}>
67
+ <a href={href} target={target}>
68
<CodeExecuteStatus
69
executeStatus={this.executeStatus}
70
executeRequired={this.executeRequired}
0 commit comments