Skip to content

Markdown tables in preview pane #17

Description

@maddes8cht

Summary

The Markdown preview (Issue #15) should render tables in a readable format. Tkinter Text widget has no native column support, making table rendering complex.

Proposed interim solution

Tables are displayed in monospace font (TkFixedFont) — the same as code blocks. Most Markdown tables use ASCII alignment and are already somewhat readable in monospace. This avoids a placeholder like [Table] that would hide content.

Future full solution (tracked separately)

A proper table renderer would:

  1. Parse pipe-delimited rows
  2. Calculate column widths across all rows
  3. Align cells using Text widget tabs or padding
  4. Bold the header row

File

  • core/markdown_renderer.py — _render_line handles table rows via TABLE_RE

Acceptance Criteria

  • Lines starting with | are rendered in TkFixedFont
  • Separator lines (| --- | --- |) are rendered but unobtrusive
  • No external dependencies

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions