Commit 08a26dd38871bcdf0294afb096297be4db835f06
1 parent
ae2dc2b8
Exists in
master
and in
1 other branch
- tables rendering improved.
Showing
2 changed files
with
3 additions
and
3 deletions
Show diff stats
BUGS.md
1 | 1 | |
2 | 2 | BUGS: |
3 | 3 | |
4 | -- melhorar markdown das tabelas. | |
5 | 4 | - servir imagens/ficheiros. |
6 | 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 | 28 | |
30 | 29 | FIXED: |
31 | 30 | |
31 | +- melhorar markdown das tabelas. | |
32 | 32 | - gravar evolucao na bd no final de cada topico. |
33 | 33 | - submeter questoes radio, da erro se nao escolher nenhuma opção. |
34 | 34 | - indentação da primeira linha de código não funciona. | ... | ... |
tools.py
... | ... | @@ -96,8 +96,8 @@ class HighlightRenderer(mistune.Renderer): |
96 | 96 | formatter = HtmlFormatter() |
97 | 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 | 102 | # def image(self, src, title, text): |
103 | 103 | # if src.startswith('javascript:'): | ... | ... |