Converts markdown into latex