Package detail

@prismicio/richtext

prismicio338.2kApache-2.02.1.5

A parser and serializer for Prismic's Rich Text format

typescript, prismic

readme

@prismicio/richtext

npm version npm downloads Github Actions CI Codecov Conventional Commits License

A parser and serializer for Prismic's Rich Text format.

Install

npm install @prismicio/richtext

Documentation

To discover what's new on this package check out the changelog. For full documentation, visit the official Prismic documentation.

Contributing

Whether you're helping us fix bugs, improve the docs, or spread the word, we'd love to have you as part of the Prismic developer community!

Asking a question: Open a new topic on our community forum explaining what you want to achieve / your question. Our support team will get back to you shortly.

Reporting a bug: Open an issue explaining your application's setup and the bug you're encountering.

Suggesting an improvement: Open an issue explaining your improvement or feature so we can discuss and learn more.

Submitting code changes: For small fixes, feel free to open a pull request with a description of your changes. For large changes, please first open an issue so we can discuss if and how the changes should be implemented.

For more clarity on this project and its structure you can also check out the detailed CONTRIBUTING.md document.

License

   Copyright 2013-2022 Prismic <contact@prismic.io> (https://prismic.io)

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.

changelog

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

2.1.5 (2023-05-22)

Bug Fixes

  • properly resolve types when using TypeScript's latest module resolution strategy (#62) (2041e53)

2.1.4 (2023-01-13)

Bug Fixes

  • support overlapping spans that extend past the preceding span (#59) (c9656db)

Chore

2.1.3 (2022-12-19)

Chore

  • deps: maintain dependencies (9f7004b)

2.1.2 (2022-12-19)

Chore

  • deps: maintain dependencies (feff198)

2.1.1 (2022-07-26)

Chore

2.1.0 (2022-05-05)

Features

  • make text available to all span tree nodes (#55) (ea385cf)

Chore

2.0.1 (2022-01-28)

Chore

  • deps: update dependencies (2150a73)
  • support React Native's Metro bundler (7a61556)

2.0.0 (2022-01-05)

Features

Bug Fixes

  • tree: null check in spans map (3013810)

2.0.0-beta.4 (2021-12-16)

Features

  • allow undefined serializer in composeSerializers (a646491)

2.0.0-beta.3 (2021-12-03)

Chore

  • deps: maintain dependencies (facf5d4)

2.0.0-beta.2 (2021-11-29)

Bug Fixes

  • overlapping text styling duplicate (#51) (4cc025b)
  • use updated RichTextNodeType enum-like type (f5aff0c)

Chore

  • deps: update all dependencies (df8b19a)
  • deps: update dependencies (e385226)

2.0.0-beta.1 (2021-10-12)

Chore

  • deps: update dependencies (26c05f7)
  • mark package as side effect free (12e9422)

2.0.0-beta.0 (2021-09-29)

Chore

  • deps: maintain dependencies (7f9233b)
  • update template config (c8b4f77)

2.0.0-alpha.7 (2021-09-14)

Chore

  • update dependencies (63ec397)
  • update pull request template (d74ab57)

2.0.0-alpha.6 (2021-07-07)

Chore

  • deps: maintain dependencies (ea55d0d)

2.0.0-alpha.5 (2021-07-03)

Chore

2.0.0-alpha.4 (2021-07-01)

Chore

2.0.0-alpha.3 (2021-06-29)

Features

  • omit nullish serialized values (55593a7)

2.0.0-alpha.2 (2021-06-25)

Features

  • allow to specify serializer function children type for composeSerializer function (b8de3a2)

2.0.0-alpha.1 (2021-06-25)

Bug Fixes

2.0.0-alpha.0 (2021-06-25)

Features

Bug Fixes

  • prevent mutating richtext tree upon parsing (0674af8)
  • rename toTree to asTree for API compat (4530872)
  • restore compat with Element export (1e57b97)
  • tree: null check in spans map (3013810)

Documentation

Chore

Refactor