Skill / SKILL.md

Portable Text Conversion

sanity-io/agent-toolkit

Convert HTML and Markdown content into Portable Text blocks for Sanity. Use when migrating content from legacy CMSs, importing HTML or Markdown into Sanity, building content pipelines that ingest external content, converting rich text between formats, or programmatically creating Portable Text documents. Covers @portabletext/markdown (markdownToPortableText), @portabletext/block-tools (htmlToBlocks), custom deserializers, and the Portable Text specification for manual block construction.
2 views 202 repository stars 0 commentsUpdated Nov 27, 2026
Overview

Convert HTML and Markdown content into Portable Text blocks for Sanity. Use when migrating content from legacy CMSs, importing HTML or Markdown into Sanity, building content pipelines that ingest external content, converting rich text between formats, or programmatically creating Portable Text documents. Covers @portabletext/markdown (markdownToPortableText), @portabletext/block-tools (htmlToBlocks), custom deserializers, and the Portable Text specification for manual block construction.

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-conversion directory with your client’s skill installer.

  • skills/portable-text-conversion

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory skills/portable-text-conversion

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
6a3fc29d3ceb20b82d62959075a2d7d7468f08524aeb7561219c40c2b32d139f
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills