I've done latex -> mathml -> markdown and it works quite well