diff --git a/packages/typedoc-plugin-markdown/src/libs/markdown/link.ts b/packages/typedoc-plugin-markdown/src/libs/markdown/link.ts index 6624ec4de..9f12d41f2 100644 --- a/packages/typedoc-plugin-markdown/src/libs/markdown/link.ts +++ b/packages/typedoc-plugin-markdown/src/libs/markdown/link.ts @@ -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})` : ''; }