wiki-tui icon indicating copy to clipboard operation
wiki-tui copied to clipboard

[BUG] can't display the table in this page, displays <Unsupported Element 'Table'> instead

Open terminaldweller opened this issue 11 months ago • 1 comments

General Information Version: 0.9.1 Installation Method: nix Operating System: kali

Used configuration (if available): whatever default config the nix version comes with

Describe the bug wiki-tui can't display the table on this page. Instead of the table, wiki-tui displays <Unsupported Element 'Table'> instead.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://en.wikipedia.org/wiki/List_of_file_signatures
  2. See error

Expected behavior wiki-tui should display the table

Checklist

  • [ ] checked other issues for the same bug
  • [x] read CONTRIBUTING.md

terminaldweller avatar Dec 21 '24 21:12 terminaldweller

You are right @terminaldweller, wiki-tui currently doesn't support tables (aswell as some other elements, like images or math). I don't have an elegant way of supporting tables (without implementing my own custom table rendering) yet.

We could use the built-in table widget of ratatui, or any other third-party table widget. But these solutions all have the problem of only supporting raw text, meaning no links/codeblocks/highlighting/etc. inside of the tables.

Builditluc avatar Dec 22 '24 10:12 Builditluc