tantek.com

Updated the auto-linking code^1 on my website last Sunday to handle a few more @-mention use-cases.

In particular:
* @-domains with dashes/hyphens like @sonja-weckenmann.de
* @-@ with (some) Unicode alphabetic characters like @briansuda@loðfíll.is
* @-domain-and-path for indicating @-mentions of silo profiles that don’t support @-@ syntax, like @flickr.com/people/tantek or @instagram.com/tantek

I also dropped auto-linking of URLs with user:password "userinfo", since they’ve been long abandoned and effectively deprecated because there’s fairly wide agreement that such basic HTTP authentication^2 was poorly designed and should not be used (and thus should not be linked).

If you’re curious you can take a look at https://tantek.com/cassis.js, which has updated functions:
* auto_link_re() — regular expression to recognize URLs, @-mentions, @-@, and footnotes to link
* auto_link() — specifically the code to recognize different kinds of @-@ and @-mentions and link them properly to profiles, domains, and paths.

This code is only live on my website (testing in production^3 as it were) for now, and you’re welcome to copy/paste to experiment with it. I plan to test it more over the coming weeks (or so) and when I feel it is sufficiently well tested, will update it on GitHub^4 as well.

With this additional auto-linking functionality, I feel I have a fairly complete implementation of how to auto-link various URLs and @-mentions, and plan to write that up at least as a minimal “list of use-cases and how they should work” auto-linking specification.

This (blog post) is my contribution to today’s #IndieWebCamp Brighton^5 #hackday!

This was originally a project I wanted to complete during IndieWebCamp Nuremberg last October, however I was pre-occupied at the time with fixing other things.^6

#autolink #atmention #atmentions #atat #atatmention

This is post 12 of #100PostsOfIndieWeb. #100Posts

https://tantek.com/2024/047/t1/indieweb-major-update-design
https://tantek.com/2024/072/t1/created-at-indiewebcamp-brighton


^1 https://tantek.com/cassis.js
^2 https://en.wikipedia.org/wiki/Basic_access_authentication
^3 https://indieweb.org/test_in_production
^4 https://tantek.com/github/cassis
^5 https://indieweb.org/2024/Brighton
^6 https://tantek.com/2023/302/t1/indiewebcamp-completed-projects

on (ttk.me t5Vs1) using BBEdit