Commit 4c469a161c60d0451b27b8c48f555fb0583fc041

Authored by Miguel Barão
1 parent 92e82d08
Exists in master and in 1 other branch dev

- tables rendering improved

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
@@ -96,8 +96,8 @@ class HighlightRenderer(mistune.Renderer): @@ -96,8 +96,8 @@ class HighlightRenderer(mistune.Renderer):
96 formatter = HtmlFormatter() 96 formatter = HtmlFormatter()
97 return highlight(code, lexer, formatter) 97 return highlight(code, lexer, formatter)
98 98
99 - # def table(self, header, body):  
100 - # return "<table class='table table-bordered table-hover'>" + header + body + "</table>" 99 + def table(self, header, body):
  100 + return '<table class="table table-sm"><thead class="thead-light">' + header + '</thead><tbody>' + body + "</tbody></table>"
101 101
102 # def image(self, src, title, text): 102 # def image(self, src, title, text):
103 # if src.startswith('javascript:'): 103 # if src.startswith('javascript:'):