Skip to content

repo: dripnex/plugin-tables — extract table WYSIWYG (the big one) #342

Description

@tomymaritano

Context

src/renderer/plugins/tables.tsx (597 LOC — parser, TableWidget, decorations, SortableTable preview) is the biggest and most-coupled built-in. Extraction absorbs the REAL table-wrapping fix deferred from the v0.15.4 CSS patch (per-table-range wrap handling inside the widget, since editor-global lineWrapping cannot be scoped per-range).

Acceptance criteria

  • Repo from plugin-template; npm @dripnex/plugin-tables; runtime id dripnex-tables
  • Uses markdown node-type renderer extension point + state facade; zero desktop-internal imports (CI-enforced)
  • Wrapping redesign: when cursor enters a table, widget keeps a structured editing surface (or horizontally-scrolling no-wrap raw view) — no more multi-line pipe soup
  • Existing parser unit tests move with the code; e2e: wide-table render + edit roundtrip
  • Hardcoded tables.tsx + tables.css deleted from desktop

Depends on

Markdown extension points, state facade (Q1); easier extractions first (math/mermaid).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions