lampsitter / egui_commonmark

Markdown viewer for egui
Apache License 2.0
82 stars 19 forks source link

Table creates extra columns for items that belong in the same column #33

Closed crumblingstatue closed 6 months ago

crumblingstatue commented 6 months ago
column a   | column b
-----------|----------
item 1     | item 2
`item` `3` | item 4

This should be rendered as image

With egui_commonmark, it's rendered as image

lampsitter commented 6 months ago

The problem is that egui::Grid is used, which creates a new column for each widget. egui_commonmark creates multiple widgets per column which is why it messes up. It might take a while to figure out the best solution to this. I have tried with egui_extras::Table, but it is really difficult to use in this architecture.