Skip to content

FEATURE: Add Markdown table support with HTML fallback#13

Open
gschlager wants to merge 1 commit intomainfrom
claude/add-markdown-table-support-AHg5s
Open

FEATURE: Add Markdown table support with HTML fallback#13
gschlager wants to merge 1 commit intomainfrom
claude/add-markdown-table-support-AHg5s

Conversation

@gschlager
Copy link
Copy Markdown
Member

@gschlager gschlager commented Apr 10, 2026

Add table parsing and rendering across all four parsers (BBCode, HTML,
TextFormatter, MediaWiki) with Markdown pipe-table output by default
and automatic HTML fallback for complex tables.

Markdown tables are used when: all rows have the same cell count, no
cell content contains newlines, and the table is not nested. Otherwise,
the renderer falls back to HTML

output with proper thead/tbody.

  • Add AST nodes: Table, TableRow, TableCell (with header flag)
  • Add BBCode handlers with auto-close for [table], [tr], [td]/[th]
  • Add HTML handlers for <table>, <tr>, <td>/<th> (thead/tbody transparent)
  • Add TextFormatter handlers for TABLE, TR, TD/TH elements
  • Add MediaWiki parser support for {| ... |} table syntax
  • Add TableTag renderer with Markdown-first, HTML-fallback strategy
  • Add unit and system tests for all parsers and renderer

Add table parsing and rendering across all four parsers (BBCode, HTML,
TextFormatter, MediaWiki) with Markdown pipe-table output by default
and automatic HTML fallback for complex tables.

Markdown tables are used when: all rows have the same cell count, no
cell content contains newlines, and the table is not nested. Otherwise,
the renderer falls back to HTML <table> output with proper thead/tbody.

- Add AST nodes: Table, TableRow, TableCell (with header flag)
- Add BBCode handlers with auto-close for [table], [tr], [td]/[th]
- Add HTML handlers for <table>, <tr>, <td>/<th> (thead/tbody transparent)
- Add TextFormatter handlers for TABLE, TR, TD/TH elements
- Add MediaWiki parser support for {| ... |} table syntax
- Add TableTag renderer with Markdown-first, HTML-fallback strategy
- Add unit and system tests for all parsers and renderer
@gschlager gschlager force-pushed the claude/add-markdown-table-support-AHg5s branch from 486c020 to 4c37601 Compare April 13, 2026 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant