Improved `mkd` translation code