Converts HTML and Markdown content into Sanity-compatible Portable Text blocks for seamless content migration and programmatic document creation.
The Portable Text Conversion skill provides specialized guidance and implementation patterns for transforming external content sources like HTML and Markdown into Sanity CMS's structured Portable Text format. It is designed to assist developers in migrating legacy CMS data, building automated content pipelines, and programmatically constructing rich text blocks while maintaining semantic integrity. By leveraging tools like @portabletext/markdown and @portabletext/block-tools, this skill ensures that converted content follows the Portable Text specification, including proper block keys, mark definitions, and style nesting.