hacky solution to fix markdown converting empty span node to self-closing