Fixes figure formatting for GitHub preview