Webmention endpoint discovery in Haskell. Probably the best function ever written :-)
This is how I search for it in HTML.
listToMaybe $ unsafePerformIO $ runX $ htmlDoc //> hasAttrValue "rel" isWebmentionRel >>> getAttrValue "href"
Why unsafePerformIO
? Because thereβs no reason for HTML parsing to depend on IO, but theyβve implemented parsing strings as parsing files with the string
protocol.
Post your response
If you write a response on your website, mark it up with h-entry and let me know the URL: