Tables from markdown doesn't have the correct CSS
Closed this issue · 0 comments
saadbruno commented
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:
There's easy 2 ways of fixing this:
-
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 -
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.