initial markdown latex implementation