Portable Text Conversion

by sanity-io88d6cdfa7cb0MITListed Oct 8, 2026Updated Oct 8, 2026

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.

Instructions onlyDocuments & Office

Only the file list is public. File contents are available once the skill is installed in a workspace.

PathSizeType
rules/html-to-pt.md6.9 KBtext/markdown
rules/manual-construction.md4.9 KBtext/markdown
rules/markdown-to-pt.md5.5 KBtext/markdown
SKILL.md2.6 KBtext/markdown

Source and attribution

Source:sanity-io/agent-toolkitinskills/portable-text-conversionat commit88d6cdf

License: MIT

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal