slab / delta

Simple and expressive JSON format for describing rich-text content and their changes
https://quilljs.com/docs/delta
BSD 3-Clause "New" or "Revised" License
914 stars 130 forks source link

Support retaining embeds #77

Closed luin closed 2 years ago

luin commented 2 years ago

This PR adds support for retaining embeds, making it possible for nested data structure transforming.

This PR doesn't introduce breaking changes but a quick note is the previous changes (https://github.com/quilljs/delta/pull/58, upgrading TypeScript, insert: string | object -> insert: string | Record<string, unknown>) break BC so the next version should be a major bump.

coveralls commented 2 years ago

Coverage Status

Coverage increased (+0.1%) to 98.985% when pulling 5dea4cbe876e764fffbc68d25252eac4e8bee7f7 on zh-retain-embed into d7a3be9292e92ba3837803b49e482b96487ae7a9 on main.

wzhudev commented 2 years ago

This feature seems not documented in README.