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!

  1. Support Staff 1 Posted by fletcher on 25 Oct, 2019 08:22 PM

    fletcher's Avatar

    I'm sorry for the delay -- I missed your question and am trying to catch back up.

    There's not a way to do this automatically -- you would have to include the raw HTML yourself.

    Fletcher

  2. fletcher closed this discussion on 25 Oct, 2019 08:22 PM.

Comments are currently closed for this discussion. You can start a new one.

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