Make markdown tables horizontally scrollable by default

This commit is contained in:
tandr3w 2024-03-16 23:02:13 -04:00 committed by Tudor Brindus
parent 6124519acf
commit bc6aef13e7

View File

@ -62,8 +62,8 @@ class AwesomeRenderer(MathRenderer, mistune.Renderer):
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):