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
Add schema attributes to Html2React #854
Comments
was going to add a Pull Request but the contribution docs seem out of date? https://docs.frontity.org/contributing/code-contribution-guide Specifically, there is no |
That's a good catch @codemonkeynorth! |
Hey @codemonkeynorth, if you create a PR, could you add |
@DAreRodz noted. Still having trouble with e2e on windows theoretically I’m only adding some strings and therefore there’s no real need to test everything? (that part passed anyway, I’m just having trouble with Cypress now) I know they’re going to pass at the Frontity team end so I may just try commit anyway |
@codemonkeynorth, don't worry about e2e testing, you can add some simple checks in this unit test: frontity/packages/html2react/src/libraries/__tests__/parse.tests.ts Lines 19 to 28 in 0b28d22
About running e2e tests on Windows, could you please share the error you got? I have Windows so I can take a look into that. |
@DAreRodz well the first is so if i add that last flag I'm getting
I'm just following the instructions here |
note we should also maybe add these non-standard items "autoCapitalize", |
Did you run @juanmaguitar: Maybe this is a good opportunity to improve our contribution guides 🙂 |
Expected behavior
itemProp
,itemScope
anditemType
should be created on elementsObserved behavior
javascript error for
itemprop
,itemscope
anditemtype
on html elementsSteps involved to reproduce the problem
add eg
<span itemprop="telephone">999</span>
to some HTML content in the database and run Html2React on itPossible solution
add the following attributes to https://github.com/frontity/frontity/blob/dev/packages/html2react/src/libraries/parse/attributes/html.json
The text was updated successfully, but these errors were encountered: