Follow

It’s obviously still missing quite a few things, but I’m finally starting to like my take on a “social” feed reader.

(janboddez.tech/notes/6de543390)

First time posting an image since Mastodon’s latest update, and it doesn’t work. (I know there was this API change, but I thought I wouldn’t be affected. Unless there’s something else I’m doing wrong. Let’s see.)

Show thread

Turns out styling other people's markup is hard, because of the many inconsistencies. Some folks use paragraphs inside blockquotes, others don't. And so on. The microformats parser I'm using seems to turn embedded Tweets into blockquotes, too, which can result in blockquotes inside blockquotes ... Thinking of just excluding replies and what not. Thinking maybe nobody's waiting for all of this anyway, and plain old RSS is difficult enough, and all we'll ever need.

Show thread

A bit of `wpautop()` and creative CSS to the rescue! (Let's see if we can improve parsing, too ... Like, later.)

Show thread

`wpautop()` can totally mess up markup with unnecessary spaces and newlines in it. Running things through an HTML minifier upfront works around that.

Show thread

But of course breaks some—not all!—preformatted text.

Show thread
Sign in to participate in the conversation
Mastodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!