Releases: connor-baer/rich-text-to-jsx
Releases · connor-baer/rich-text-to-jsx
v2.3.0
v2.2.2
Patch Changes
6950a88
Thanks @JayaKrishnaNamburu! - Addedprop-types
to the peer dependencies.
2.2.1
2.2.0
2.1.3
2.1.2
2.1.1
Bug fixes
- #4 Get content type from resolved linked entry @kevee
- #6 Use correct content structure for tests and default components @connor-baer
Docs
- #5 Add contributing docs @connor-baer
2.1.0
Changes
- Add default components for embedded assets: by default, images, videos, and audio files are rendered with the appropriate HTML5 elements when embedded as blocks and as download links when embedded inline or as hyperlinks.
2.0.0
Changes
- Improve support for custom elements: custom components for embedded entries and assets can now be defined more easily. Have a look at the documentation to see how. (#1)
[BREAKING CHANGE] Overrides for custom elements are now indexed the other way round: nodeType -> contentType/mimeTypeGroup
instead of contentType -> nodeType
Enhancements
- Use helpers from Contentful (f9539db)
1.0.0
Initial release 🚀
- Any HTML tags (corresponding to node types) rendered by the compiler can be overridden to include additional props or even a different React component entirely.
- Embedded entries and assets can be rendered using different components depending on whether they are inline, blocks or hyperlinks.
- The rendering function can be customized.