
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.
Only the file list is public. File contents are available once the skill is installed in a workspace.
| Path | Size | Type |
|---|---|---|
| rules/html-to-pt.md | 6.9 KB | text/markdown |
| rules/manual-construction.md | 4.9 KB | text/markdown |
| rules/markdown-to-pt.md | 5.5 KB | text/markdown |
| SKILL.md | 2.6 KB | text/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.
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 Serialization
sanity-io
Guides rendering and serializing Sanity Portable Text to React, Svelte, Vue, Astro, HTML, Markdown, and plain text.

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 Documents & Office

View Pdf
anthropics
Opens PDFs in an interactive viewer for annotation, form filling, and visual signature placement.

Wiki Ado Convert
microsoft
Generates a Node.js script that converts VitePress/GFM markdown into Azure DevOps Wiki-compatible markdown copies.
openai
Reads, creates, and visually reviews PDF files, rendering pages to images and using Python libraries for generation and extraction.

Esign Field Placement
affaan-m
Written workflow contract for placing e-signature fields in a browser composer using numeric coordinates, with draft-save and operator gates.

Visa Doc Translate
affaan-m
Translates visa application document images into English and produces a bilingual PDF with the original image and translation.

Google Workspace Ops
affaan-m
Operates Google Workspace Docs, Sheets, Slides and Drive assets: locating, inspecting, editing and cleaning shared files.