Unlock seamless workflows and faster delivery with our latest releases – get the details
Back to changelog

Enhancements to Portable Text Editor and TypeGen support for Astro

✨ Highlights

Markdown behaviors for the Portable Text Editor

The Portable Text Editor (PTE) now ships with markdown keyboard shortcuts for headings, block quotes and lists.

This change extends the core behaviors of the PTE with default markdown behaviors for a more intuitive writing experience. This allows you to:

  1. Use # characters to create headings.
  2. Use > to create a blockquote.
  3. Use Backspace at the beginning of a block to clear its style.
  4. Use -, *, _ or 1. to initiate a list.

This is part of the effort that brings features from the new standalone Portable Text Editor back into the Studio.

TypeGen: add support for astro

You can now generate types from queries in .astro files. Learn more in the TypeGen docs.

🐛 Notable bugfixes

  • Fixes schema extraction with nested union references.
  • Header when creating new documents is now translated.
  • Fixes WebSocket is closed before the connection is established warning.
  • Fixes a regression introduced in v3.38.0 that could in rare cases cause a crash when opening a document in the Studio.
  • unset() inside custom datetime input components will now show that the value has been unset in the Studio UI.

Install or upgrade Sanity Studio

To initiate a new Sanity Studio project or upgrade an existing one, please refer to our comprehensive guide on Installing and Upgrading Sanity Studio.

If you are updating from a version earlier than 3.37.0, you should also check out this article to ensure your dependencies are up to date.

Documentation affected by this release

Published January 08, 2025