@tiptap-pro/extension-convert-kit Changelog

Changelog for @tiptap-pro/extension-convert-kit

0.1.1

Patch Changes

  • c189c62: Licensing

0.1.0

Minor Changes

  • 830279c: Initial release of ConvertKit — a single-import Tiptap extension bundle for rendering DOCX-imported content

    Custom DOCX Extensions:

    • Paragraph and Heading with spacing (spacingBefore, spacingAfter, lineHeight), fontSize (from DOCX paragraph mark for spacer paragraphs), indentation (indent, hangingIndent), and contextualSpacing attributes
    • Image with crop attributes (cropTop, cropBottom, cropLeft, cropRight)
    • Table with left indentation, cellMinWidth: 1 for narrow DOCX spacer columns, and collapsed borders
    • TableRow with height and heightRule (exact/atLeast)
    • TableCell and TableHeader with background, verticalAlign, per-side border attributes (width, style, color), and a .cell-content wrapper div for height constraints
    • TableRow exposes height as a --tr-height CSS custom property for child cells

    CSS Resets:

    • Injects browser style resets on editor creation to normalize table rendering: line-height: 1 on cells and rows, vertical-align: top on cells, white-space: normal on cell paragraphs, and zero default margins/padding — ensuring DOCX spacing values delivered as inline styles render accurately
    • Enforces exact row heights (heightRule: "exact") by constraining the .cell-content wrapper div to the row's height with overflow: hidden — CSS height/max-height do not apply to display: table-cell elements, so the block-level wrapper is required

    Table rendering fixes:

    • Table extension accepts a new width attribute (parses/renders width: Npx; max-width: 100%) so DOCX-declared w:tblW values render accurately without overflowing the page container when the author drew the table wider than the content area
    • Table extension now clamps negative indent values to 0 at render time while preserving the raw value in attrs — negative w:tblInd values from DOCX (which rely on Word's paper gutter) no longer push tables past the page container's left edge; the original value is kept for export round-trip
    • TableRow extension height rendering now branches on heightRule: exact rows keep their hard-clipping behaviour via height + --tr-height; other rows (atLeast or unset) render as min-height so narrower columns can grow the row instead of clipping content

    Bundled OSS Extensions:

    • Includes 30+ standard Tiptap extensions (Document, Text, Bold, Italic, Underline, Strike, Code, Link, BulletList, OrderedList, ListItem, HardBreak, HorizontalRule, CodeBlock, TextStyleKit, TextAlign, Highlight, Superscript, Subscript, Dropcursor, Gapcursor, PageBreak) — all individually configurable or disableable via ConvertKit.configure()