Remove filename from internal figure/footnote links.
Don't substitute inline math within equation/align environment. Substitute inline math spanning multiple lines.