#microformats 2026-02-24

2026-02-24 UTC
#
gregorlove
edited /h-event (+75) "/* Examples in the wild */ IA link for 68 middle St example"
(view diff)
The_Decryptor, Loqi, JSharp, mjgardner, [tantek] and fab57 joined the channel
#
fab57
Hi! Just two short questions: Can I have more than one "p-summary" tag below h-entry/e-content and are they all put together? And the other one: Can I use p-category tags in a p-summary tag?
saccharin and pfych joined the channel
#
[tantek]
you can have more than one but what to do with them is not defined. most likely implementations will pick the first one to display. or if there are multiples in different languages perhaps a future implementation may choose the language the user most prefers
saccharin and pfych joined the channel
#
fab57
[tantek]: Ok. And can I use something like "<p class="p-summary">Blah blah <span class="p-category">#hashtag</span> </p>"?
#
fab57
All I want is to use #hashtags in my p-summary for mastodon posts. Maybe I can simply enter them as plaintext without p-category?
#
ulhar4409
you could, but i might argue that the point of p-category is for fetching those categories without having to otherwise parse the "text" parts
#
[tantek]
yes fab57 that would be valid!
#
[tantek]
I found the markup of hashtags inside the context of a post to be a little more involved, to get them to both display well (clickable) and show up properly when federated. Could chat more about those details in #indieweb-dev
#
fab57
[tantek]: I could use an <a> tag below a p-summary tag to make them clickable in my post and show as plaintext when federated. Or isn't that an option?
#
[tantek]
it is, it just took some experimenting to get it to federate properly because of the quirks of how Mastodon reads hashtags from HTML
#
fab57
[tantek]: Ok. Thanks for the information and the link. I think I'll learn by trial.
milkii joined the channel
#
[tantek]
report back on what you find out!
#
fab57
[tantek]: I think I'll go by linking them with an <a> tag and use my home pleroma instance for linking to tags: <a class="p-category" href="https://pleroma.envs.net/tag/webmention">#webmention</a> for a first start.
#
fab57
Thanks for your help. If I find out more I'll report. But I'm working on my webmention and microformat implementation for only 3 days now :). So I'm a little inexperienced.
#
[tantek]
great way to learn!
dcrex, barnaby, [Scout], [lazcorp] and [Trevor_Morris] joined the channel
#
[snarfed]
ugh yeah hashtags and mentions in Mastodon were horrible
[Schepp], [Jo]1, gRegor, [cleverdevil], barnaby, topo_97[d], Jon, btrem and plantroon joined the channel