
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.
Add to a SourceWeft workspace
- Open the skill in your dashboard and add it to a workspace.
- Enable it for the chats that should use it.
This skill is instructions only: it ships no scripts to execute.
Add to SourceWeftYou will be asked to sign in first, then taken straight to this skill.
Ask your agent to install it
Paste this prompt into Claude Code, Codex, Cursor or another agent that can run commands — or into SourceWeft chat. The agent reads this skill's install guide, shows you its source, license and scripts, and installs it with the SourceWeft CLI once you agree.
Read https://sourceweft.com/skills/gh-sanity-io-agent-toolkit-portable-text-serialization/install.md and install the skill it describes. Before installing, show me its source, license and whether it ships scripts, and wait for my OK. Ask me before changing anything else on my machine.Install it yourself from a terminal
For Claude Code, Codex, Cursor and other local agents. The SourceWeft CLI fetches the skill from its source repository at the commit scanned here, and verifies every file against the hashes recorded when the skill was scanned. If anything differs, nothing is written.
npx @sourceweft/cli skills install gh-sanity-io-agent-toolkit-portable-text-serializationAdd --agent claude-code, codex, cursor or universal to choose which agent gets it (Claude Code by default).
Upstream installer — not verified by SourceWeft
The open-source skills installer fetches the same pinned commit, but does not check the files against the hashes SourceWeft recorded.
npx skills add https://github.com/sanity-io/agent-toolkit/tree/88d6cdfa7cb06c99edd5f376efa4dac21ae3f877/skills/portable-text-serializationSource 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.

Testing Strategy
anthropics
Designs test strategies and test plans, covering test types, coverage targets, and example test cases.

Tech Debt
anthropics
Identifies, categorizes, and prioritizes technical debt, producing a scored backlog and phased remediation plan.

System Design
anthropics
Guides system and architecture design through requirements, high-level design, deep dives, scaling, and trade-off analysis.