Convert vertical lines (|) to \vert inside math blocks

To prevent Markdown from interpeting them as table constructs.