Skip to content

Commit 5ab94d4

Browse files
committed
fix content in brackets
1 parent 49766ac commit 5ab94d4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/MarkdownRenderer.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,10 @@ const defaultRenderers = ({
366366
},
367367
link: Link,
368368
linkReference(props) {
369-
return <div {...props} />;
369+
if (!props.href) {
370+
return <span>[{props.children}]</span>;
371+
}
372+
return <Link {...props} />;
370373
},
371374
table: TableWrapper,
372375
tableHead: TableHeader,

0 commit comments

Comments
 (0)