MediaWiki reader: Trim contents of `<math>` tags.

Otherwise we get problems when converting to markdown.

Closes #1027.