gerwitz / hgc-v11

A deprecated version of hans.gerwitz.com
4 stars 0 forks source link

Autolinking #15

Open gerwitz opened 6 years ago

gerwitz commented 6 years ago

URLs become links, but what about hashtags, @usernames, dates, etc.?

I think I'd like to detect these things during rendering and give them CSS classes, then use JS to add links.

Some rules: Hashtags might offer Twitter, Instagram, Flickr, or Pinboard @usernames might offer Twitter or Micro.blog Dates could offer archive links URLs found to 404 could go "dead" and offer cache lookups. Novelty formats could be fun:

gerwitz commented 6 years ago

See also https://noembed.com/ for expanding the possibilities of oEmbed.