Skip to content

Commit

Permalink
feat(contentful): add support for tables in Rich Text
Browse files Browse the repository at this point in the history
  • Loading branch information
axe312ger committed Apr 27, 2022
1 parent 3036ba0 commit 82fa3f5
Show file tree
Hide file tree
Showing 4 changed files with 2,224 additions and 1,155 deletions.
3 changes: 3 additions & 0 deletions e2e-tests/contentful/cypress/integration/rich-text.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,7 @@ describe(`rich-text`, () => {
cy.get(`[data-cy-id="english-rich-text-localized"]`).snapshot()
cy.get(`[data-cy-id="german-rich-text-localized"]`).snapshot()
})
it(`rich-text: Tables`, () => {
cy.get(`[data-cy-id="rich-text-tables"]`).snapshot()
})
})
3 changes: 3 additions & 0 deletions e2e-tests/contentful/snapshots.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/gatsby-source-contentful/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
},
"dependencies": {
"@babel/runtime": "^7.15.4",
"@contentful/rich-text-react-renderer": "^14.1.3",
"@contentful/rich-text-types": "^14.1.2",
"@contentful/rich-text-react-renderer": "15.5.1",
"@contentful/rich-text-types": "15.5.1",
"@hapi/joi": "^15.1.1",
"@vercel/fetch-retry": "^5.0.3",
"axios": "^0.21.1",
Expand Down

0 comments on commit 82fa3f5

Please sign in to comment.