Commit 08a26dd38871bcdf0294afb096297be4db835f06

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

- tables rendering improved.

Showing 2 changed files with 3 additions and 3 deletions   Show diff stats
1 1
2 BUGS: 2 BUGS:
3 3
4 -- melhorar markdown das tabelas.  
5 - servir imagens/ficheiros. 4 - servir imagens/ficheiros.
6 - topicos virtuais nao deveriam aparecer. na construção da árvore os sucessores seriam ligados directamente aos predecessores. 5 - topicos virtuais nao deveriam aparecer. na construção da árvore os sucessores seriam ligados directamente aos predecessores.
7 6
@@ -29,6 +28,7 @@ TODO: @@ -29,6 +28,7 @@ TODO:
29 28
30 FIXED: 29 FIXED:
31 30
  31 +- melhorar markdown das tabelas.
32 - gravar evolucao na bd no final de cada topico. 32 - gravar evolucao na bd no final de cada topico.
33 - submeter questoes radio, da erro se nao escolher nenhuma opção. 33 - submeter questoes radio, da erro se nao escolher nenhuma opção.
34 - indentação da primeira linha de código não funciona. 34 - indentação da primeira linha de código não funciona.
@@ -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:'):