Skip to content

Commit

Permalink
Make markdown tables horizontally scrollable by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Fushi-sudo authored and Xyene committed Mar 18, 2024
1 parent 6124519 commit bc6aef1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions judge/jinja2/markdown/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ def autolink(self, link, is_email=False):

def table(self, header, body):
return (
'<table class="table">\n<thead>%s</thead>\n'
'<tbody>\n%s</tbody>\n</table>\n'
'<div class="h-scrollable-table">\n<table class="table">\n<thead>%s</thead>\n'
'<tbody>\n%s</tbody>\n</table>\n</div>\n'
) % (header, body)

def link(self, link, title, text):
Expand Down

0 comments on commit bc6aef1

Please sign in to comment.