Skip to content

Support metaformats fallback option #224

@aciccarello

Description

@aciccarello

Describe the feature

An experimental option should be available to use meta tags as a fallback for sites that don't natively implement microformats. The Metaformats spec defines changes to the microformats parsing algorithm to support this.

Adding an opt-in feature would allow using microformats as the vocabulary for understanding other sites while not interfering with pure microformats parsing.

Example of input

GitHub Issue: #39

Example of output

Here's the output of opengraph-mf2 which implements this general concept (though limited to OpenGraph).

{
    "type": [
        "h-entry"
    ],
    "properties": {
        "name": [
            "Provide JavaScript ES module export in distribution · Issue #39 · microformats/microformats-parser"
        ],
        "summary": [
            "Hi Aimee! Lovely to see a clean and modern implementation of a microformats parser; just what I need for my Micropub project! What type of feature is it? An additional option for importing this mod..."
        ],
        "featured": [
            "https://opengraph.githubassets.com/78fd25660d09eb046441b40894ba7dcc6668105efa381fdd8dd1cb3b2f5ba61e/microformats/microformats-parser/issues/39"
        ],
        "url": [
            "https://github.com/microformats/microformats-parser/issues/39"
        ]
    }
}

Additional context

This was prompted by getindiekit/mf2tojf2#20

More details found on the Indieweb Wiki.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions