Generate wiki diffs using a temp file instead of a big string of realloc() calls.