Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow numbers in vendor prefixes #158

Closed
gRegorLove opened this issue Mar 21, 2018 · 1 comment
Closed

Allow numbers in vendor prefixes #158

gRegorLove opened this issue Mar 21, 2018 · 1 comment
Milestone

Comments

@gRegorLove
Copy link
Member

gRegorLove commented Mar 21, 2018

Minimal example from https://aaronparecki.com/2018/03/21/18/

<li class="h-entry">
  <data class="p-name" value="Coffee"></data>
  <div class="p-p3k-drank h-p3k-food">
    <span class="value">Coffee</span>
  </div>
</li>

Currently parses:

    "items": [
        {
            "type": [
                "h-entry"
            ],
            "properties": {
                "name": [
                    "Coffee"
                ]
            }
        }
    ]

Expected output via mf2py dev

    "items": [
        {
            "type": [
                "h-entry"
            ], 
            "properties": {
                "name": [
                    "Coffee"
                ], 
                "p3k-drank": [
                    {
                        "type": [
                            "h-p3k-food"
                        ], 
                        "properties": {
                            "name": [
                                "Coffee"
                            ]
                        }, 
                        "value": "Coffee"
                    }
                ]
            }
        }
    ]

Per spec update: microformats/microformats2-parsing#28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant