Skip to content

Skills for Claude Code CLI such as full stack dev Cloudflare, React, Tailwind v4, and AI integrations.

fix(tiptap): Correct markdown extension to @tiptap/markdown

Jez5f9d593c5e1e
diff --git a/skills/tiptap/SKILL.md b/skills/tiptap/SKILL.md
index 265277d0..4be3c78b 100644
--- a/skills/tiptap/SKILL.md
+++ b/skills/tiptap/SKILL.md
@@ -354,21 +354,27 @@ const editor = useEditor({
**When to use**: Real-time multi-user editing (Notion-like)
**See**: `templates/collaborative-setup.tsx` for full example
-### Pattern 2: Markdown Input/Output
+### Pattern 2: Markdown Support
```typescript
-import { generateHTML } from '@tiptap/html'
-import { generateJSON } from '@tiptap/core'
+import { useEditor } from '@tiptap/react'
import StarterKit from '@tiptap/starter-kit'
+import { Markdown } from '@tiptap/markdown'
-// Markdown → JSON
-const json = generateJSON(markdownContent, [StarterKit])
+// Load editor with markdown content
+const editor = useEditor({
+ extensions: [StarterKit, Markdown],
+ content: '# Hello World\n\nThis is **Markdown**!',
+ contentType: 'markdown', // ⚠️ Important: specify content type
+ immediatelyRender: false,
+})
-// JSON → HTML for display
-const html = generateHTML(json, [StarterKit])
+// Get markdown from editor
+const markdownOutput = editor?.storage.markdown.getMarkdown()
```
-**When to use**: Storing as markdown, displaying as rich text
+**When to use**: Storing content as markdown, displaying/editing rich text
+**Install**: `npm install @tiptap/markdown`
### Pattern 3: Form Integration with react-hook-form
diff --git a/skills/tiptap/references/extension-catalog.md b/skills/tiptap/references/extension-catalog.md
index 83141ebd..e9dd4f3a 100644
--- a/skills/tiptap/references/extension-catalog.md
+++ b/skills/tiptap/references/extension-catalog.md
@@ -238,14 +238,18 @@ Popular third-party extensions:
### Markdown
-**tiptap-markdown**
-- Markdown input/output
-- npm: `tiptap-markdown`
+**@tiptap/markdown** (Official, Recommended)
+- Markdown parser and serializer
+- npm: `@tiptap/[email protected]`
+- Import: `import { Markdown } from '@tiptap/markdown'`
+- Status: Stable (v3+)
+- Docs: https://tiptap.dev/docs/editor/markdown
+
+**tiptap-markdown** (Community, Legacy)
+- Community markdown package
- GitHub: https://github.com/aguingand/tiptap-markdown
-
-**@tiptap/extension-markdown**
-- Official markdown extension
-- Beta/experimental
+- Note: Maintainer not planning v1 release, consider official package
---
diff --git a/skills/tiptap/templates/package.json b/skills/tiptap/templates/package.json
index 7dea5910..8180c853 100644
--- a/skills/tiptap/templates/package.json
+++ b/skills/tiptap/templates/package.json
@@ -24,6 +24,7 @@
"vite": "^6.0.7"
},
"optionalDependencies": {
+ "@tiptap/markdown": "^3.11.1",
"@tiptap/extension-collaboration": "^3.11.1",
"@tiptap/extension-collaboration-cursor": "^3.11.1",
"@tiptap/extension-task-list": "^3.11.1",