#microformats 2023-01-30
2023-01-30 UTC
[tantek], ur5us, gRegorLove__, [snarfed], [fluffy] and greenfork joined the channel
# greenfork Hi, I have read several pages linked on microformats.org and I still don't understand what the problem is that microformats attempts to solve. Could someone give me a link explaining the problem?
# greenfork I found some valueable pieces here: https://microformats.org/wiki/get-started. I think it would be good for general understanding to put some of this content to the front page
IWSlackGateway, [tantek], [aciccarello], sebbu2, [KevinMarks], sivoais, [snarfed] and [dave] joined the channel
# [dave] Like in theory I could use http://microformats.org/wiki/h-recipe to specify data in an HTML page with my grandma's 'Party Potatoes' recipe and then anyone with a Chrome extension that understands h-recipe format could show a notification blip and let me click a button to save it to a bookmark or list or something
# [snarfed] should mf2 parsers convert relative links inside `e-content` to absolute? right now eg php-mf2 does, mf2py doesn't. https://github.com/snarfed/bridgy-fed/issues/390#issuecomment-1408879534
# aaronpk wow it's not at all https://microformats.org/wiki/microformats2-parsing#parsing_an_e-_property
# aaronpk found the commit where it was added, in 2013 https://github.com/microformats/php-mf2/commit/b293a31cfd2a42b3ea066b02d94c34abd9ae42f4
# [KevinMarks] I have done this elsewhere (and the reverse, for post processing spiderpig'sites)
# greenfork [dave]: Thank you for your answer. Do you personally have any use cases for this? In your example you said "in theory", I wonder if anyone uses it in some interesting way
# greenfork I would naturally first construct something in JSON, and then generate HTML based of this
IWSlackGateway and [tantek] joined the channel
[dave] joined the channel
# [dave] https://github.com/beatonma/microformats-reader -- the website for it isn't even there anymore and it doesn't work currently
[KevinMarks] joined the channel
[snarfed], ehmry, jamietanna, ur5us and [aciccarello] joined the channel
# [aciccarello] On my feeds, my posts are wrapped in a link. Since the wrapper is a link I can't have another link inside to point to the author card. Is there a way to reference the h-card inside an h-entry without href?
# [aciccarello] `<a class="h-entry u-url mdc-card disable-link-styles" href="/posts/2022/03/30/post-slug/">...</a>`
[jacky] and jamietanna joined the channel
# [aciccarello] I guess I can use a data element `<data class="u-author" value="/" />`
[schmarty] joined the channel
# [aciccarello] Hm, adding the data element caused the post URL to disappear from the mf2 parsing
# [aciccarello] Apparently combining h-entry and u-url isn't great.
# [KevinMarks] I think that would nest the h-entry under the url property of the container. If you want the url inside the entry you need a contained element
angelo, [chrisbergr] and [Caleb_Hearth] joined the channel