Skill / SKILL.md

Portable Text Serialization

sanity-io/agent-toolkit

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.
3 views 202 repository stars 0 commentsUpdated Nov 27, 2026
Overview

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.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/sanity-io/agent-toolkit' skill-source

Use the complete skill-source/skills/portable-text-serialization directory with your client’s skill installer.

  • skills/portable-text-serialization

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory skills/portable-text-serialization

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
b572d243812b07c64299c831bd145674fee3a51d7d5811082229e3f8349c5dd2
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills