How to extend MMD to automatically add a wrapper for tables?

jgagnon's Avatar

jgagnon

04 Sep, 2019 04:05 PM

Is there a way to extend MMD to tell it to automatically add an HTML wrapper for tables like this:

<div class="table-wrapper"> <table> … </table> <div>

It would be useful when we need to do responsive table with an overflow="auto" wrapper (to add horizontal scrolling, when the layout is exact and critical).

Thanks!

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac