How to Customise Tables

You can do this with jQuery also - not elegant but saves putting any markup in your markdown. This assumes that you don’t have any other tables because this jQuery will blat all tables!

If you do have other tables then you could sharpen the rules a bit if you have a containing content div.

// Add table css - we should be able to do this in Hugo but it isn't possible yet
$("table").addClass("table thead-dark table-striped table-bordered table-hover")
$("thead").addClass("thead-dark")
1 Like