Skip to content

Add Microformats2 markup#421

Merged
Gargron merged 1 commit into
mastodon:masterfrom
valpackett:master
Jan 6, 2017
Merged

Add Microformats2 markup#421
Gargron merged 1 commit into
mastodon:masterfrom
valpackett:master

Conversation

@valpackett

Copy link
Copy Markdown
Contributor

Continuing #122, this PR adds full microformats2 h-feed, h-card and h-entry markup. This allows e.g. reading feeds in Woodwind and displaying reply/repost/like contexts in Sweetroll.

h-feed, h-card and h-entry
@Gargron Gargron merged commit 18deeb9 into mastodon:master Jan 6, 2017
@kevinmarks

kevinmarks commented Jan 10, 2017

Copy link
Copy Markdown

Some nesting mixups here:
looking at https://mastodon.social/users/kevinmarks/
<data class='p-name' value='kevinmarks on mastodon.social'> isn't setting the p-name of the feed, and is wrapping the whole h-feed div in a <data> element, as <data> isn't self-closing.

The non-repost entries don't have class="h-entry" so aren't showing up as entries, but their properties are being put into the h-feed instead:
http://www.unmung.com/mf2?url=https%3A%2F%2Fmastodon.social%2Fusers%2Fkevinmarks%2F&html=&pretty=on

<div class='entry'> should be <div class='entry h-entry'>

The posts look better, though adding u-comment to the h-cite will make them nest better:

https://indieweb.org/comments#How_to_markup

@dissolve dissolve mentioned this pull request Apr 5, 2017
1 task
alpaca-tc pushed a commit to pixiv/mastodon that referenced this pull request Jun 5, 2017
ClearlyClaire pushed a commit to ClearlyClaire/mastodon that referenced this pull request Apr 22, 2018
…-emoji-api

[Glitch] retrieve custom emoji list via API instead of before page load
ClearlyClaire pushed a commit to ClearlyClaire/mastodon that referenced this pull request Jul 6, 2023
…d_yarn/async-2.6.4

Bump async from 2.6.3 to 2.6.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants