saadbruno/openrct2_plugin_repository

Tables from markdown doesn't have the correct CSS

Closed this issue · 0 comments

Bootstrap has its own classes to properly handle style of tables:
https://getbootstrap.com/docs/4.5/content/tables/

The problem is that the Parsedown library doesn't output the classes required by bootstrap to properly style them, leaving us with this monstrosity:
image

There's easy 2 ways of fixing this:

  1. Apply the bootstrap styling to html tags (<table>, <thead> and so on) instead of specific classes. This will affect every table in the website, but i don't think that's an issue

  2. Modify the Parsedown library to output the correct classes along with the html tags.

I prefer the 1st option as it doesn't rely on modifying the library and won't have a problem if it's updated and whatnot.