XRay, the library that I use to parse URLs to show comments, now supports parsing direct Microformats JSON, ActivityStreams 2.0, as well as finding a
rel=alternate link and parsing data from that instead!
This means I now get great results when parsing Mastodon or other ActivityPub links, and this is also the first step in what I hope will result in fixing the Microformats situation for WordPress, since a WordPress plugin will be able to generate Microformats JSON and advertise that in a
Next up is updating Aperture to take advantage of these new features!
Just published v0.4.2 of the PHP Microformats parser! github.com/indieweb/php-mf2/releases/tag/v0.4.2 Thanks to @martijnvdven and @gregorlove for all their work on this release!
Aperture consumes the
u-photo property on posts. All 3 current Microsub clients (Monocle, Together, and Indigenous) also consume the property to display photos in the reader interfaces.
- all spaces and tabs immediately before and after a line break are ignored
- all tab characters are handled as space characters
- line breaks are converted to spaces
- sequences of spaces at the beginning and end of a line are removed