portable-text
БесплатноБез исполняемых скриптовНе проверенWork with Portable Text, a JSON-based specification for structured block content. Use this skill to render Portable Text in React, HTML, Vue, Svelte, or…
от portabletext★ 290 звёзд на GitHubОб этом скилле
Portable Text
Portable Text is an open, JSON-based specification for structured block content.
Content is stored as an array of typed blocks: each block has a _type and
carries its own data. The same content renders to React, HTML, Markdown, or any
other target through a serializer.
Full documentation index: https://www.portabletext.org/llms.txt
Complete corpus: https://www.portabletext.org/llms-full.txt
Every page is available as Markdown by appending .md (e.g. /rendering/react.md).
Rendering existing Portable Text
Pick the serializer for the target. Pass the Portable Text value to it.
- React:
@portabletext/reactexposes<PortableText value={value} />. Override defaults with thecomponentsprop (marks,types,block,list). See/rendering/react.md. - HTML string:
@portabletext/to-html(toHTML). Works in Node, Deno, edge, and browsers. See/rendering/html.md. - Vue:
@portabletext/vue. See/rendering/vue.md. - Svelte:
@portabletext/svelte. See/rendering/svelte.md. - Markdown:
@portabletext/markdown. See/rendering/markdown.md.
Unknown block types are skipped unless you provide a component for them, so custom types never crash a render.
Building an editor
@portabletext/editor is a headless, schema-driven React editor.
- Define a schema with
defineSchema({decorators, styles, lists, ...}). - Wrap the editor in
EditorProviderto supply the schema and initial value. - Render
PortableTextEditablefor the editable surface. - Listen for changes with
EventListenerPluginfrom@portabletext/editor/plugins.
Toolbars come from @portabletext/toolbar and keyboard shortcuts from
@portabletext/keyboard-shortcuts. Editor behavior is customized through the
Behavior API (defineBehavior). Start at /editor/getting-started.md.
Converting into Portable Text
- HTML to Portable Text:
@portabletext/block-tools(htmlToBlocks). See/conversion/html-to-portable-text.md. - Markdown to Portable Text:
@portabletext/markdown. See/conversion/markdown-to-portable-text.md.
When unsure
Read /llms-full.txt for the full documentation, or fetch the .md variant of
the relevant page. Do not invent block types or component APIs; the schema and
the serializer components map define what exists.
Установить portable-text в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл portable-text?
Work with Portable Text, a JSON-based specification for structured block content. Use this skill to render Portable Text in React, HTML, Vue, Svelte, or Markdown, to build a block content editor with @portabletext/editor, or to convert HTML and Markdown into Portable Text.
Как установить скилл portable-text?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл portable-text запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic