Nat Knight

hypertext

#webtool #hypertext #web

After yet another fight with the syntax for text fragments in URLs (which I've written about before) I had Claude whip up a little app for constructing and testing them.

It's published here.

#web #hypertext

Or “how you can link to arbitrary text on a webpage”.

The syntax is a little weird, but you can add a specially formatted anchor to a URL to link to a snippet of text.

The syntax is:

https://example.com#:~:text=[prefix-,]textStart[,textEnd][,-suffix]

I find it particularly useful for linking to a quote in a longer article.

See MDN for the full documentation.