gladevise / remark-link-card

remark-link-card-gladevise.vercel.app
MIT License
27 stars 8 forks source link

Enable to shorten display URL via options. #9

Closed yamat47 closed 3 years ago

yamat47 commented 3 years ago

Issue

I am using remark-link-card in my blog. Thank you for creating so nice library!

But I have a problem. The link card always displays full URL. Then a link card from a long URL (such as this) is a bit ugly.

Screenshot 2021-04-30 12 07 49

What I changed

I enabled to display only URL's hostname when options.shortenUrl is truthy.

vercel[bot] commented 3 years ago

Someone is attempting to deploy a commit to a Personal Account owned by @gladevise on Vercel.

@gladevise first needs to authorize it.

yamat47 commented 3 years ago

To @gladevise

I implemented shortening url option. Please review this pull request 🙇‍♂️

gladevise commented 3 years ago

@yamat47 Thanks to your PR!!! This option makes the remark-link-card look much better!