portable-text-conversion
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.
- Version
- 1.0.0
- License
- MIT
Pinned to revision 65960de3e747, so it is the text this page describes rather than whatever the author pushed since.
Files
- skills/portable-text-conversion/SKILL.md
- skills/portable-text-conversion/rules/html-to-pt.md
- skills/portable-text-conversion/rules/manual-construction.md
- skills/portable-text-conversion/rules/markdown-to-pt.md
Every link opens the file at its source, pinned to the revision this page describes.