Use Python and regexp to turn markdown as LaTeX