Extend WordPress gallery shortcode to use tables


We are using the default ‘gallery’ shortcode in our latest project which is something we don’t normally use but thought we would give it a go.

Our posts are also sent out in email form so when this happens we need to convert the gallery to a table. Is there any way that this can be done without completely rewriting the gallery shortcode?