MatterHackers / MatterControl

3D printing software for Windows, Mac and Linux
http://www.mattercontrol.com/
BSD 2-Clause "Simplified" License
460 stars 185 forks source link

Add tables to markdown renderer #5191

Open larsbrubaker opened 2 years ago

larsbrubaker commented 2 years ago

@larsbrubaker commented on Thu Jan 13 2022

We use Markdig to parse Markdown and render it with our Gui library Agg. The relevant code can be found under MatterControlLib -> Utilities -> MarkdigAgg

This should render correctly

| Left columns  | Center columns | Right columns |
| ------------- | :------------: | -------------:|
| left foo      | center foo     | right foo     |
| left bar      | center bar     | right bar     |
| left baz      | center baz     | right baz     |

And look like this: image

An easy place to test markdown is in the printer settings for filament loading:

markdown

This must have a test that demonstrates the functionality is working