. (also on IndieNews)
Here is how I test microformats markup on my website.
First I install mf2py:
sudo dnf install python3-mf2py
Then I define this one-liner Bash function:
mf2test() { python -c 'import sys; import mf2py; import json; print(json.dumps(mf2py.parse(url=sys.argv[1])))' $1 | jq; }
And then I can test a website like this:
$ mf2test https://blog.rickardlindberg.me/2026/02/05/075110.html
{
"items": [
{
"type": [
"h-entry"
...
What is Rickard working on and thinking about right now?
Every month I write a newsletter about just that. You will get updates about my current projects and thoughts about programming, and also get a chance to hit reply and interact with me. Subscribe to it below.