
Portable Text Serialization
by sanity-io88d6cdfa7cb0MITListed Oct 8, 2026Updated Oct 8, 2026
Render and serialize Portable Text to React, Svelte, Vue, Astro, HTML, Markdown, and plain text. Use when implementing Portable Text rendering in any frontend framework, building custom serializers for non-standard block types, converting Portable Text to HTML strings server-side, converting Portable Text to Markdown, extracting plain text from Portable Text, or troubleshooting rendering issues with marks, blocks, lists, or custom types.
Only the file list is public. File contents are available once the skill is installed in a workspace.
| Path | Size | Type |
|---|---|---|
| rules/astro.md | 2.3 KB | text/markdown |
| rules/html.md | 3.1 KB | text/markdown |
| rules/markdown.md | 3.8 KB | text/markdown |
| rules/plain-text.md | 1.7 KB | text/markdown |
| rules/react.md | 3.5 KB | text/markdown |
| rules/svelte.md | 2.7 KB | text/markdown |
| rules/vue.md | 3 KB | text/markdown |
| SKILL.md | 4.3 KB | text/markdown |
Source and attribution
Source:sanity-io/agent-toolkitinskills/portable-text-serializationat commit88d6cdf
License: MIT
Content belongs to its original authors. SourceWeft indexes it from a public repository.
More from sanity-io/agent-toolkit

Seo Aeo Best Practices
sanity-io
Reference guidance for SEO and AEO: metadata, structured data, EEAT, and AI answer readiness.

Sanity Studio Upgrade
sanity-io
Plans Sanity Studio upgrades from v3 onward by inspecting a repository and reporting only the breaking changes that apply.

Sanity Migration
sanity-io
Plans, implements, and reviews content migrations from other CMSes and content systems into Sanity.

Portable Text Conversion
sanity-io
Converts HTML and Markdown content into Portable Text blocks for Sanity CMS.

Content Modeling Best Practices
sanity-io
Guidance for designing structured content models in headless CMSes, covering schema design, reuse, references and taxonomies.

Content Experimentation Best Practices
sanity-io
Guidance for planning and interpreting content experiments and A/B tests to improve conversion and engagement.
More in Software Development

Playground
anthropics
Builds self-contained interactive HTML playgrounds with controls, live preview, and copyable prompt output.

M5 Onboard
anthropics
Provisions M5Stack ESP32 boards by detecting them on USB, flashing UIFlow 2.0 firmware, and installing a MicroPython app bundle.

Cardputer Buddy
anthropics
Guides iterating on a Cardputer-Adv MicroPython app bundle: adding apps, pushing files over USB-serial, tailing logs, and running REPL commands.

Dpop Adoption
Guides implementation of OAuth 2.0 DPoP (RFC 9449) sender-constrained refresh tokens for Google's OAuth platform.

Gemini Live Api
Generates a Gemini Live API WebSocket client class, tests, docs, and a demo UI for bidirectional streaming.

Gemini Api
Guides use of the Gemini API on Google's Agent Platform with the Gen AI SDK across languages and capabilities.