Skip to content

Commit

Permalink
fix(core): trim link label
Browse files Browse the repository at this point in the history
  • Loading branch information
tgreyuk committed Sep 5, 2024
1 parent 43b35ee commit fa60205
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/typedoc-plugin-markdown/src/libs/markdown/link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
* @param url The url to link to
*/
export function link(label: string, url: string | null) {
return url ? `[${label}](${url})` : '';
return url ? `[${label.trim()}](${url})` : '';
}

0 comments on commit fa60205

Please sign in to comment.