1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-18 13:11:17 +02:00

feat: add optional method to decoration object (#5776)

This commit is contained in:
yf-yang
2024-12-07 15:19:30 +08:00
committed by GitHub
parent 6bc5758358
commit 5a1c728c62
9 changed files with 101 additions and 19 deletions

View File

@@ -0,0 +1,5 @@
---
'slate': minor
---
Add `merge` optional function to decorations and change related type signatures to `DecoratedRange`. Now developers can specify how two decoration object with the same key but different value are merged together if they overlap"