badges: fix markdown title bug. cleanup about card.

Signed-off-by: Andreas Stenius <git@astekk.se>
This commit is contained in:
Andreas Stenius
2021-02-19 22:22:05 +01:00
committed by Fredrik Adelöw
parent b99231c0bc
commit 1cf23e05cb
3 changed files with 13 additions and 8 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ export class BadgesClientApi {
}
private getBadgeMarkdownCode(badge: object): string {
const title = badge.title && ` "${badge.title}"`;
const title = badge.title ? ` "${badge.title}"` : '';
const img = `![${badge.description}](${badge.url}${title})`;
if (!badge.target) {
return img;