Skip to content

Commit 21dde06

Browse files
committed
feat: Markdown URLs
1 parent 270256e commit 21dde06

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docusaurus.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,10 @@ module.exports = {
277277
handlers: {
278278
link: (node) => {
279279
const isUrlInternal = isInternal(node.url);
280-
return `[${node.title}](${isUrlInternal ? `${config.absoluteUrl}${node.url}` : node.url})`;
280+
const url = isUrlInternal ? `${config.absoluteUrl}${node.url}` : node.url;
281+
282+
if (node.title) return `[${node.title}](${url})`;
283+
return url;
281284
},
282285
},
283286
},

0 commit comments

Comments
 (0)