Skip to content

Commit 885cfe0

Browse files
authoredJan 13, 2025··
fix(block-tools): "soft" deprecate in favour of @portabletext/block-tools (#8254)
1 parent 104b74c commit 885cfe0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎packages/@sanity/block-tools/README.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Sanity Block Tools
22

3+
> **⚠ This package is deprecated**
4+
>
5+
> Please note that this package is deprecated and has been replaced by [@portabletext/block-tools](https://www.npmjs.com/package/@portabletext/block-tools)
6+
37
Various tools for processing Sanity block content. Mostly used internally in the Studio code, but it got some nice functions (especially `htmlToBlocks`) which is handy when you are importing data from HTML into your dataset as block text.
48

59
**NOTE:** To use `@sanity/block-tools` in a Node.js script, you will need to provide a `parseHtml` method - generally using `JSDOM`. [Read more](#jsdom-example).

0 commit comments

Comments
 (0)
Please sign in to comment.