Skip to content

Commit

Permalink
feat: accept blank text link
Browse files Browse the repository at this point in the history
  • Loading branch information
kawarimidoll committed Aug 17, 2021
1 parent 7463f28 commit 2be1333
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ list:
link: https://github.com
- text: this is a link to Twitter
link: https://twitter.com
- link: https://gitlab.com

id-2:
icon: feather/anchor
Expand Down
2 changes: 1 addition & 1 deletion render_html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export function renderListItem(listItem: ListItem) {
);

return href
? h("a", { href }, iconText(icon, text + exLink))
? h("a", { href }, iconText(icon, (text || href) + exLink))
: iconText(icon, text);
}

Expand Down

0 comments on commit 2be1333

Please sign in to comment.