Skip to content

Commit bc6aef1

Browse files
Fushi-sudoXyene
authored andcommitted
Make markdown tables horizontally scrollable by default
1 parent 6124519 commit bc6aef1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

judge/jinja2/markdown/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ def autolink(self, link, is_email=False):
6262

6363
def table(self, header, body):
6464
return (
65-
'<table class="table">\n<thead>%s</thead>\n'
66-
'<tbody>\n%s</tbody>\n</table>\n'
65+
'<div class="h-scrollable-table">\n<table class="table">\n<thead>%s</thead>\n'
66+
'<tbody>\n%s</tbody>\n</table>\n</div>\n'
6767
) % (header, body)
6868

6969
def link(self, link, title, text):

0 commit comments

Comments
 (0)