convert tab to spaces and fix trailing whitespace.
{.centered} is not handled by parsedown