@tiptap/core
3.35.0 · 20 Nov 2026MIT39.5M / weekRepositoryHomepagenpmAtom feed
3.35.0 is the newest release of 3.x.
In short
2 new1 fixed6 changed
Security
2 advisories affect 3.7.0; 3.30.5 fixes them
- HighTiptap: Quadratic ReDoS in block and inline Markdown attribute parsingGHSA-j95f-988m-3j2f · 8 Sep 2026Fixed in 3.30.5
- ModerateTiptap: mergeAttributes() turns an own __proto__ key into inherited executable DOM attributesGHSA-cp6q-959q-f8rh · 2 Sep 2026Fixed in 3.30.4
Release note
The section about @tiptap/core of a note shared by several packages.
@tiptap/core
Minor Changes
All commands and their corresponding TypeScript types are now exported from
@tiptap/coreso they can be imported and referenced directly by consumers. This makes it easier to build typed helpers, extensions, and tests that depend on the command signatures.Why:
Previously some command option types were only available as internal types or scattered across files, which made it awkward for downstream users to import and reuse them.
import { commands } from '@tiptap/core'Notes:
This is a non-breaking, additive change. It improves ergonomics for TypeScript consumers.
If you rely on previously private/internal types, prefer the exported types from
@tiptap/coregoing forward.
Add comprehensive bidirectional markdown support to Tiptap through a new
@tiptap/markdownpackage and Markdown utilities in@tiptap/core.New Package:
@tiptap/markdown- A new official extension that provides full Markdown parsing and serialization capabilities using MarkedJS as the underlying Markdown parser.Core Features:
Extension API
MarkdownExtension: Main extension that adds Markdown support to your editorMarkdownManager: Core engine for parsing and serializing MarkdownParse Markdown strings to Tiptap JSON:
editor.markdown.parse(markdown)Serialize Tiptap JSON to Markdown:
editor.markdown.serialize(json)Access to underlying marked.js instance:
editor.markdown.instance
Editor Methods
editor.getMarkdown(): Serialize current editor content to Markdown stringeditor.markdown: Access to MarkdownManager instance for advanced operations
Editor Options:
contentType: Control the type of content that is inserted into the editor. Can bejson,htmlormarkdown- defaults tojsonand will automatically detect invalid content types (like JSON when it is actually Markdown).new Editor({ content: '# Hello World', contentType: 'markdown' })
Command Options: All content commands now support an contentType option:
setContent(markdown, { contentType: 'markdown' }): Replace editor content with markdowninsertContent(markdown, { contentType: 'markdown' }): Insert markdown at cursor positioninsertContentAt(position, markdown, { contentType: 'markdown' }): Insert Markdown at specific position
For more, check the documentation.
Patch Changes
The extension manager now provides a new property
baseExtensionsthat contains an unflattened array of extensions
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.