Packages

@tiptap/extension-code-block

3.35.0 · 20 Nov 2026MIT34.9M / weekRepositoryHomepagenpmAtom feed

Your version

213 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 3.x · latest line
  2. 3.4.0

    4 Sep 2025
    • Added indentation support for code blocks via Tab. Is deactivated by default.

      New Extension Options:

  3. 3.3.1

    2 Sep 2025
    • Prevent incorrect insertion of code marks when a space immediately follows backticks.

    • Fixed outdated warning message to reference @tiptap/extension-undo-redo instead of @tiptap/extension-history.

    • Improve drag handle node lookup by scanning element bounding rects inside the editor instead of performing per-pixel elementsFromPoint loops, and throttle mouse handling to a single update per animation frame to reduce CPU usage and improve stability.

      This should make drag handle positioning and node detection significantly faster and more robust.

  4. 3.3.0

    23 Aug 2025
    • Make input rules and paste rules respect extension priority by registering
      them per-extension instead of aggregating them into a single global plugin.

    • Fix paste rule handling for node views and defensively guard empty ranges.

      This patch ensures paste rules can correctly inspect node content when
      node-specific size metadata (nodeSize) is present, falling back to
      node.content.size when needed. It also skips empty or invalid node ranges
      before calling textBetween, preventing runtime errors originating from
      internal Fragment/Node traversals (for example: "Cannot read properties of
      undefined (reading 'nodeSize')").

    • Change the generateID option to accept a context object: { node, pos }.

      This lets ID generators access both the ProseMirror node and its pos within the document when creating IDs, enabling logic that depends on node content, type, or position.

      The change is backwards-compatible: existing generateID functions that ignore the new context will continue to work. Example usage:

      editor.use(UniqueID, {  
        generateID: ({ node, pos }) => `${node.type.name}-${pos}-${uuidv4()}`,  
      })
  5. 3.2.2

    22 Aug 2025
    • Change the generateID option to accept a context object: { node, pos }.

      This lets ID generators access both the ProseMirror node and its pos within the document when creating IDs, enabling logic that depends on node content, type, or position.

  6. 3.2.1

    21 Aug 2025
    • Ensure drag previews for node views work correctly in Safari by attaching
      an offscreen clone of the node to the DOM while calling
      setDragImage, and by preserving the original element's pixel
      width/height so the preview matches the original. This prevents
      Safari from immediately cancelling the drag when a detached element is
      used as the drag image.

  7. 3.2.0

    14 Aug 2025

    Only updates dependencies:@tiptap/core 3.2.0@tiptap/pm 3.2.0

  8. 3.1.0

    10 Aug 2025
    • Expose onDragStart and onDragEnd callbacks to improve custom drag behavior. This allows better UI control compared to relying on editor.view.dragging, especially when using absolute-positioned drag handles.

    • Expose onDragStart and onDragEnd callbacks to improve custom drag behavior. This allows better UI control compared to relying on editor.view.dragging, especially when using absolute-positioned drag handles.

    • Fixed bubble menus having invalid positions on node selections

  9. 3.0.9

    1 Aug 2025
    • Fixed the Vue 3 Drag Handle so it only appears when the user starts interacting with the text editor.

    • Update TaskItem aria-label when node changes

    • Fix renderToMarkdown rendering a link href's as undefined

  10. 3.0.8

    1 Aug 2025
    • Security

      Bump linkifyjs version to latest to address the recently discovered prototype pollution vulnerability

  11. 3.0.7

    16 Jul 2025
    • Fix a problem with the inline option and virtual elements missing getClientRects

    • Fix a problem with the inline option and virtual elements missing getClientRects

  12. 3.0.6

    15 Jul 2025
    • Broken types for function chaining when calling extend

  13. 3.0.4

    15 Jul 2025
    • Add correct overload for extension extend types

  14. 3.0.3

    15 Jul 2025
    • Avoid the JSX Runtime to globally overwrite React's Element types when /** @jsxImportSource @tiptap/core */ is not used

  15. 3.0.2

    15 Jul 2025
    • Correctly pass through the bubble menu floating options

    • Improvement: Added better JSDocs for the options object

    • Improvement: Added better JSDocs for the options object

  16. 3.0.1

    12 Jul 2025

    Reading the note…

  17. 3.0.0

    14 Jul 2024
  18. 2.x
  19. 2.27.3

    4 Sep 2026
  20. 2.27.2

    7 Jan 2026

    Reading the note…

  21. 2.27.1

    29 Oct 2025

    Reading the note…

  22. 2.27.0

    29 Oct 2025

    Reading the note…

  23. 2.26.4

    23 Oct 2025

    Reading the note…

  24. 2.26.3

    9 Oct 2025

    Reading the note…

  25. 2.26.2

    23 Sep 2025

    Reading the note…

  26. 2.26.1

    11 Jul 2025

    Reading the note…

  27. 2.26.0

    11 Jul 2025

    Reading the note…

  28. 2.25.1

    10 Jul 2025

    Reading the note…

  29. 2.25.0

    6 Jul 2025

    Reading the note…

  30. 2.24.2

    4 Jul 2025

    Reading the note…

  31. 2.24.1

    3 Jul 2025

    Reading the note…

  32. 2.24.0

    2 Jul 2025

    Reading the note…

  33. 2.23.1

    30 Jun 2025

    Reading the note…

  34. 2.23.0

    26 Jun 2025

    Reading the note…

  35. 2.22.3

    21 Jun 2025

    Reading the note…

  36. 2.22.2

    21 Jun 2025

    Reading the note…

  37. 2.22.1

    21 Jun 2025

    Reading the note…

  38. 2.22.0

    20 Jun 2025

    Reading the note…

  39. 2.14.1

    19 Jun 2025

    Reading the note…

  40. 2.14.0

    6 Jun 2025

    Reading the note…

  41. 2.13.0

    5 Jun 2025

    Reading the note…

  42. 2.12.0

    5 May 2025

    Reading the note…

  43. 2.11.9

    30 Apr 2025

    Reading the note…

  44. 2.11.8

    30 Apr 2025

    Reading the note…

  45. 2.11.7

    30 Mar 2025

    Reading the note…

  46. 2.11.6

    28 Mar 2025

    Reading the note…

  47. 2.11.5

    31 Jan 2025

    Reading the note…

  48. 2.11.4

    30 Jan 2025

    Reading the note…

  49. 2.11.3

    22 Jan 2025

    Reading the note…

  50. 2.11.2

    10 Jan 2025

    Reading the note…

  51. 2.11.1

    10 Jan 2025

    Reading the note…

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.